Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Brain Freeze
Message
From
30/10/2015 10:00:09
John Baird
Coatesville, Pennsylvania, United States
 
 
To
30/10/2015 09:47:41
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01626701
Message ID:
01626705
Views:
47
>The smart safe transaction table has two possible eventcode values DECL and VER
>
>a VER transaction can relate to one or DECL transactions.
>
>The verifyid column in a DECL transaction points to the VER transaction for that row, if any.
>
>I was to select ALL DECL rows where the verifyid column is 0 or if it's not zero the postingdate in the related VER transaction is earlier than a given date
>
>I get this far and go blank
>
>
>select * from view_expandedsmartsafetrans where eventcode = 'DECL' and verifyid = 0 
>
IIRC, you can use a case in a where clause.
Previous
Reply
Map
View

Click here to load this message in the networking platform