Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. puregoldeneye

    How top Sum values of two columns using Select Query

    As I understand, we sum the column car_count, and group the fields! I tried your query, and I want to say Thank You! It works, and gives the desired result. If it is not too much trouble, would you suggest me any REALLY good SQL Server Programming Books? Have a nice day!
  2. puregoldeneye

    How top Sum values of two columns using Select Query

    Hi all, I have a question: How to Sum values of two columns (car_count) using Select Query? **Direction: A road has two lanes, direction 1, and direction 2. I want the output to be only one row per hour, with the sum of car_count values showing up. For Example:-- hour station_id speed_class...
  3. puregoldeneye

    Format Time?

    Hi SQLBill, I agree with everything you have mentioned above. Thanks!
  4. puregoldeneye

    Format Time?

    I got the answer, here it is: SELECT cast(((DatePart(Hour,date_hour)-1) % 12)+1 as varchar(2)) + CASE when DatePart(Hour,date_hour)<12 then 'AM' else 'PM' end out put is: 8AM Cheers!
  5. puregoldeneye

    Format Time?

    I got the answer, here it is: SELECT cast(((DatePart(Hour,date_hour)-1) % 12)+1 as varchar(2)) + CASE when DatePart(Hour,date_hour)<12 then 'AM' else 'PM' end from sum where date_hour >='2003-04-04 08:00:00.000' and date_hour <= '2003-04-04 20:00:00.00' and sensorid= '5001' and direction =...
  6. puregoldeneye

    Format Time?

    Hi all, I have a datetime field called date_hour. Currently the values that are being stored in this field are in this format: 2003-04-04 08:00:00.000. What should I write in my Select statement so that the query returns that value: 8 AM Please Help! Thanks in advance.
  7. puregoldeneye

    Logon Box -- Delete Domains/Network List

    Tim, Your suggestion helped in solving my Login issue. Thank you.
  8. puregoldeneye

    Logon Box -- Delete Domains/Network List

    Hi Techies, My Computer is connected to a domain called &quot;cs&quot;. I want only those users that are physically registered into my computer should be able to login (locally), NOT by selecting the cs domain from the combo-box at Login window. How do I get rid of this cs domain selection from...

Part and Inventory Search

Back
Top