all groups > sql server programming > july 2007 > threads for sunday july 8
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Sql Update Query
Posted by YALTA at 7/8/2007 8:56:22 PM
Hello,
I am new to working with SQL and I have a few questions. One the
update query below, one will it work and I looking for a better
understanding of the steps that are taking when this query runs.
begin tran
update address
set phone = xxxxxxxxx,fax = yyyyyyyyyy
from address y inner ... more >>
casting an time as hh
Posted by Larry Killen at 7/8/2007 7:44:23 PM
I have a query (below) where I group the records by the hour, among other
things. I use the DatePart with the 'hh' signifier which is supposed to
give me 02 for 2 AM rather then 2.
I need the 0 in front of the single digit so that the hours collate
correctly in my application.
Larry... more >>
Input mask
Posted by Lolik at 7/8/2007 4:40:02 PM
Trying to add an input mask in 2005 using sp_addextendedproperty.
The property is added but the mask does not work. Used "9" for digit
placeholder. Not sure if it is correct.
Would someone point me to a list with input mask placeholders, please?... more >>
Picking first and last records
Posted by Infinity at 7/8/2007 2:26:04 PM
Hi guys
I have got a table as shown below.
Funder
Start_date
End_date
NNN
A
21/06/2004
27/06/2004
BH
A
28/06/2004
4/07/2004
BH
A
5/07/2004
11/07/2004
BH
A
12/07/2004
18/07/2004
BH
A
1/07/2005
2/0... more >>
return random results, one per category, with one query
Posted by Sergei Shelukhin at 7/8/2007 5:27:21 AM
Hi. I need to create a view for a site that has ads for items arranged
by category (e.g. table is something like Offer (ID int PRIMARY KEY,
CategoryID int, CreatedDate datetime)).
I need to take N categories that were used in N latest offers posted
on the site, and then for each of them return o... more >>
Format Number Function
Posted by Bpk. Adi Wira Kusuma at 7/8/2007 12:00:00 AM
Is there function to format number in SQL SERVER 2000?
Examples
SET @I=2555
----> '002555' what is the function?
----> '2.555,00' what is the function?
... more >>
Sort Table
Posted by Ahmed Hashish at 7/8/2007 12:00:00 AM
I need SQL statement that sort the Table Invoices(InvoiceNum Int) as =
follows:
The Table has the following data
InvoiceNum
1
1
1
2
2
2
... more >>
|