all groups > sql server mseq > december 2005
Max of different columns
Posted by Joe Thompson at 12/29/2005 11:11:02 PM
Hi,
Say I have a table like this
Name F1 F2 F3
Joe 3 4 2
Bill 1 3 7
Bob 4 4 2
How can I write a query to select the name and max of F1, F2, F3 so my
results are
Joe 4
Bill 7
Bob 4
Thank you,
Joe... more >>
time(urgent)
Posted by shif at 12/29/2005 7:18:02 AM
Hi
How can i take time > hh:mmAM/PM and time < hh:mmAM/PM from a datetime field.
please give me a sample query for this.
--
Thanks... more >>
Indexing a table using a Query
Posted by Wez at 12/15/2005 11:55:03 AM
Hi,
I have a table as follows:
ID Forename Surname
------ ------------- ---------------
2 John Rodgers
1 Mike Williams
3 Joe Browne
4 Pete Anthony
5 Ken Browne
I would like a query or group of querys t... more >>
Use of "USE databasename" Within a Stored Procedure
Posted by RitaG at 12/6/2005 8:22:03 AM
Hi.
I have a common stored procedure (SP) that has a variable containing a
database name passed to it. Within the SP I have the statement "Use
@databasename" but get an error when I run the SP. I then defined a variable
that holds all the SQL statements (including the “USE @databasenameâ... more >>
Question...
Posted by Skc at 12/6/2005 4:09:02 AM
I want to do a "As" query in SQL. In Access, Query Designer, you can
specifiy in the criteria field something like:
Field name: From: DT_RDG_TO (so my field is called from)
[Reading Cons Detail - CU04TB36]![DT_RDG_TO]-[reading header -
cu04tb12]![qy_days_used]
How do I do this in SQL ... more >>
I'm not a SQL programmer but I need help please
Posted by Tim at 12/2/2005 10:48:02 AM
Hello
Yes, I certainly am not a programmer. Access gives me enough of a headache.
What I'm after is some advice.
Me and my brother run a small business and we have decided to have a
database developed specifically for our business. The question is what do we
need? We have approached sever... more >>
query
Posted by Tiffany at 12/2/2005 1:38:03 AM
hi
i have some models that end with +SP e.g. 1234+SP, abcd+SP I want to remove
only the +SP from these models. May i know how can i do it. Thank you
... more >>
|