Viewing 15 posts - 1 through 15 (of 25 total)
cajun_sql (8/24/2015)
...
([tp_ID] in
(
select UserName
)
...
Maybe tp_ID is an integer, and UserName a varchar 😉
August 25, 2015 at 12:05 am
I am glad I could help 🙂
You can use = (SELECT... only when you are sure the subquery returns only one row, in other cases you must use IN
Roland
January 21, 2015 at 3:38 am
If I understand what you are looking for, I think this will do it :
Select firtname, lastname
from users
where Userid in (select UserId
from classes
group by UserID
having...
January 21, 2015 at 12:11 am
Declare @LastRun varchar (50)
...
Set @LastRun =
(SELECT Process_ID, Process_Name, Last_Message_Time
FROM [ITF3].[dbo].[Process]
WHERE Process_ID IN (1,2,3,4)
...
December 23, 2014 at 12:20 am
I am sorry, but I don't see the logics behind the results you are expecting. Could you explain it a little 🙂
Roland
November 5, 2014 at 12:01 am
I am sorry if I hurted someone. It was intended to be a joke !
October 1, 2014 at 9:06 am
Another badly redacted question ! It gets a little boring :doze:
October 1, 2014 at 12:18 am
On 2012 :
on master database, 6 different values, on other databases 2 differents values :doze:
September 30, 2014 at 12:07 am
In a new database, with sensitive collation, the check constraint works fine.
How did you change the collation ?
September 10, 2014 at 2:03 am
Isn't it a problem of case insensitive collation ?
September 10, 2014 at 12:15 am
Thank you Gila Monster.
Clearly I made a mistake, sorry :blush:
I think I remembered it this way because in my mind I saw the logic behind. Now I don't...
August 1, 2014 at 12:05 am
autoexcrement (7/30/2014)
UPDATE GLAMF
SET Activesw = 0
WHERE ACCTID NOT IN
(SELECT ACCTID from GLPOST)
:exclamation: This query will work fine is GLPOST is not empty. But if it is empty, the condition will...
July 30, 2014 at 11:55 pm
Hugo Kornelis (7/28/2014)
July 28, 2014 at 7:55 am
I am sorry, but I don't agree 🙂
I executed the script in SSMS (SQL Server 2012). It returned "10 row(s) affected", the csv file was created, but was empty. If...
July 27, 2014 at 11:18 pm
Viewing 15 posts - 1 through 15 (of 25 total)