473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Convert Railway Time to GMT Time in SQL query

3
In SQL Query how to Convert Railway Time to GMT Time
Aug 25 '07 #1
3 5300
azimmer
200 Expert 100+
In SQL Query how to Convert Railway Time to GMT Time
It may be my fault but I've no clue what Railway Time is. Is it http://en.wikipedia.org/wiki/Railway_time ? If you tell me what it is, I tell you how to convert it to GMT in SQL -- fair deal, isn't it? :-D
Aug 26 '07 #2
renuks
3
It may be my fault but I've no clue what Railway Time is. Is it http://en.wikipedia.org/wiki/Railway_time ? If you tell me what it is, I tell you how to convert it to GMT in SQL -- fair deal, isn't it? :-D

For Eg: when the start time is 15:30 & end time is 17:30 then how to convert it to 03:30 & 05:30 respectively
Aug 27 '07 #3
azimmer
200 Expert 100+
For Eg: when the start time is 15:30 & end time is 17:30 then how to convert it to 03:30 & 05:30 respectively
In MSSQL:
Expand|Select|Wrap|Line Numbers
  1. select right(convert(varchar,myTime,100),7)
  2.  
where myTime is of datetime and e.g. myTime=cast('17:30' as datetime)

Is it OK or you need one that conforms a standard (like SQL92)?
Aug 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

29
by: Jan | last post by:
Hi: I have an Access database that's been running (in one form or another) for a couple of different clients for a few years. Now a new client has requested that it be implemented with a SQL...
5
by: XML newbie: Urgent pls help! | last post by:
function to convert string to 1 dimensional array of long in VB.Net
2
by: kirke | last post by:
Hi, I have a datetime column named dtDateTime. its format is "Oct 27 2006 12:00:00 " I want to group by only date part of it and count my code is $sql1="SELECT ...
1
by: pop | last post by:
i am a student.i am studying engg...i want c/c++ source code for railway reservation system and online purchasing...... plz help buddies.........
10
by: amitdutt2002 | last post by:
Hi, i need the documentation on the Railway Reservation System,
4
by: ritikakhanna | last post by:
hi, i want to make a project on online railway reservation in vb.net.this project is windows based.but i want to take this project on internet by making this project on windows .please tell me how...
2
by: balaanand | last post by:
I m sure that railway reservation database system is implemented as distributed system... I need to know how it is designed...
1
by: forswapnil | last post by:
Hello, I am currently doing a project for Railway Reservation System. I am finding difficult to get the documentation of that project. I request you to kindly send me the documentation of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.