Viewing 15 posts - 646 through 660 (of 897 total)
Such mistakes happen sometimes. So no problems. Glad i could help you out 🙂
November 11, 2010 at 2:43 am
You probably forgot a JOIN condition on the Price Column
SELECT[ResultID], [HotelSearchResults].[HotelID], [HotelName], P.minPrice
FROM[Hotels].[dbo].[HotelSearchResults]
INNER JOIN(
SELECTHotelID, MIN(Price) AS minPrice
FROMHotelSearchResults
GROUP BY HotelID
) P
ON HotelSearchResults.HotelID = p.HotelID
AND HotelSearchResults.Price = P.minPrice -- You missed this...
November 11, 2010 at 2:33 am
Check the Actual Execution Plan to see if the ORDER BY is the real problem. Most probably it might be but its always better to confirm.
If its confirmed that the...
November 8, 2010 at 10:54 pm
Gianluca Sartori (10/29/2010)
Try this:
SELECT CAST(DATEPART(hh,timer) AS FLOAT) + (CAST(DATEPART(mi,timer) AS FLOAT)/60)
FROM tblTimeRecorder
BTW, get rid of that "tbl" prefix on your tables before Joe Celko catches you...
:-D:-P:-D He has managed...
October 29, 2010 at 6:48 am
eroness (10/29/2010)
The Datepart function for the minutes should return 0,5 but return 0.
SELECT skjema_nr, skjema_arb_lengde, DATEPART(mi, skjema_arb_lengde) / 60 AS Expr1
FROM...
October 29, 2010 at 6:41 am
If i had the education i have today, I would probably be a teacher. I would love to teach Mathematics or English or Hindi( Its the official language in India,...
October 29, 2010 at 3:47 am
You can use either PIVOT or CROSS TABS. CROSS TABS according to me are easier to understand.
The links below contain good articles on the same
October 22, 2010 at 5:33 am
Iulian -207023 (10/21/2010)
October 21, 2010 at 11:03 pm
Iulian -207023 (10/21/2010)
The pros are:
the numerical order is the same...
October 21, 2010 at 6:32 am
Glad that i could help you. Now see if you can convert that column to DATETIME or a SMALLDATETIME datatype to avoid such problems in the future. It is not...
October 20, 2010 at 11:25 pm
Good Question. One more point can be added to the answer.
You can truncate a table that has a foreign key that references itself
See the link to the BOL...
October 20, 2010 at 10:58 pm
OK. Now try the below queries and see if you get any data in incorrect format
SELECT *
FROM tbl_00001
WHERE SUBSTRING( uploadtime, CHARINDEX(...
October 20, 2010 at 6:42 am
Did you try the below query in the client's place
SELECT * FROM tbl_00001 WHERE ISDATE(uploadtime) = 0
If YES. What was the data you got from the query?
October 20, 2010 at 6:29 am
kirubamca09 (10/20/2010)
Hi sharath.chalamgaripls did you find any solution let me know.
Your error message clearly says that there is some data in your clients side which...
October 20, 2010 at 6:18 am
What is the error message your client is getting?
Probably your client has some data which is not in dd/mm/yyyy hh:mm:ss AM/PM format.
October 20, 2010 at 5:52 am
Viewing 15 posts - 646 through 660 (of 897 total)