SQL Select Questions and Answers

Recent IT Questions

1 - 4 of 4
<<PREVIOUS 1 NEXT>>

SQL select loop list?

Say I want to derive the following: Select ID, F1 from table Union Select ID, F2 from table Union Select ID, F3 from table Union … etc until F10. Is there smart and easy way so that I can just provide a list: F1,F2,F3,…,F10 and somehow be able to have the select statement loop through it? Also,...

Answer Question   |  Sep 4 2009  3:25 AM GMT
SELECT, SQL Select, T-SQL
asked by Vinical

  5 pts.

SQL Select: Getting the previous records from a known record

I issued a select statement like this: Select phone# from pltlcd where phone# >= 985143525 fetch first 20 records only PLTLCD is a file sorted by phone#. From the first record retrieved by the aboe select statement, how do I get the 20 records in the file that exist before the returned set of...

asked by Bogeybetsy

  325 pts.

SQL select command

Hi i hope all doing well, i have a problem with this SQL select command : **************************************************************** SELECT DISTINCT customers.first_name, customers.last_name, customers.email, customers.cellPhone, customers.phone, items.title, items.price,...

View Answer   |  Jul 31 2009  12:51 AM GMT
SQL Select, SQL, SQL commands
asked by Abrahm75

  70 pts.

Concatenation

I am using "substring(concat('00'...." within my SQL select for a date query. However, the date 10 and higher is being overridden with "0". How do I prevent this from happening?

View Answer   |  Jun 9 2009  6:55 PM GMT
Substring, SQL Select, SQL Query
asked by BGramby

  15 pts.

1 - 4 of 4
<<PREVIOUS 1 NEXT>>