Function result can be checked with IN clause in SQL Server.
Sometimes we stuck in some situation where it will be more
helpful.
Sometimes we stuck in some situation where it will be more
helpful.
CREATE TABLE TestD(ID INT,Val NVARCHAR(50))INSERT INTO TestDSELECT 1,'SW11131' UNION ALLSELECT 2,'WR11131'SELECT * FROM TestDWHERESUBSTRING(Val,1,2) IN ('SW','RW')'SW','RW')
That’s It.
Enjoy Learning.
Enjoy Learning.
No comments:
Post a Comment