Viewing 15 posts - 13,756 through 13,770 (of 13,792 total)
Can you post the exact error message that you are getting and the circumstances under which it is displayed?
June 23, 2004 at 9:57 pm
Kenneth, if field1 is anything other than zero, your solution won't produce the required result: instead it will produce (field1 + (other calculations)), in the case where field2 is zero.
However,...
June 23, 2004 at 5:40 pm
I think the Case statement is the way to go. Something like this:
SELECT Field1, Field2, etc...
FROM tbl_Purchase
WHERE ((case field2
when 0 then 0
else field1/field2
end)
+ (other calculations)) > 0
Regards.
June 22, 2004 at 6:49 pm
So, on insert to table2, need to set t2.refno to
select refno from table1 t1
where t1.email1 = t2.email2?
(where t2 is aliased to table2)
Is table1.email1 unique? If not, obviously an issue here...
June 21, 2004 at 1:10 am
This is a bit confusing and needs a bit more info. Are you saying that every time you create a record in table1, you need to create an associated record...
June 21, 2004 at 12:45 am
Nice thinking and thanks for the response - you've approached it from an angle I hadn't considered.
But had to get on with it and have already written a wedge...
June 18, 2004 at 12:15 am
June 17, 2004 at 9:34 pm RE: programmatically switching off (x row(s) affected) in query analyser results paneUse 'set nocount', eg set nocount on select etc ... set nocount off Regards Phil June 16, 2004 at 5:29 pm RE: Running stored procedure in QA - ODBC ErrorExcuse my lack of knowledge, but how do you control the method by which QA connects to a particular SQL Server instance? Cheers. June 4, 2004 at 1:46 am RE: Running stored procedure in QA - ODBC ErrorWindows 2000. SQL Server 2000 SP3. Cheers Phil June 4, 2004 at 1:13 am RE: Select latest 2 records - Select top?Think you can do it with a UNION query – something like: select name, max(last_seen) from test group by name union select t1.name, max(t1.last_seen) from test t1 inner join test t2 on t1.name = t2.name where t1.last_seen < t2.last_seen group by... June 3, 2004 at 11:48 pm RE: Dumb SQL question....The sysuser_sysusergroup and sysuser tables do not even exist on my SQL Server 2000 installation – are they standard? I'm sure that I could help out if I understood the... May 13, 2004 at 5:57 pm RE: date ( check constraints what ever)Problem in SQL-SERVER 2000Two ways spring to mind. 1) When the application sets the deleted flag to 'Y', why doesn't it set the deleted date as well as part of the same transaction? This... May 13, 2004 at 12:44 am RE: TSql ScriptTry this: select top 10 * from information_schema.routines where routine_type = 'procedure' and then refine to get the fields/data you want. May 12, 2004 at 5:38 pm Viewing 15 posts - 13,756 through 13,770 (of 13,792 total) |
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy