Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql get highest date from 3 tabels

SELECT MAX(MaxDate) FROM (SELECT MAX(TradeDate) AS MaxDate FROM Office.Transactions WHERE BrokerID = 1 AND TradeDate IS NOT NULLUNIONSELECT MAX(EntryDate) AS MaxDate FROM Office.IOI WHERE BrokerID = 1UNIONSELECT MAX(EntryDate) AS MaxDate FROM Office.TradeNotes WHERE BrokerID = 1) AS X
Comment

PREVIOUS NEXT
Code Example
Sql :: create view in sql server that contain multiple select statements 
Sql :: oracle apex run 404 
Sql :: Postpresql relation not found 
Sql :: time mysql w3 
Sql :: oracle executing sqlplus commands and waiting for completion 
Sql :: except in sql alchemy 
Sql :: oracle generate sequence of numbers 
Sql :: sql gather statistics to increase performance 
Sql :: id INT NOT NULL AUTO_INCREMENT 
Sql :: Using Set<Id in Dynamic SOQL 
Sql :: mysql user set plugin 
Sql :: allow null sql 
Sql :: combine islands dates sql 
Sql :: low level operator in dbms 
Sql :: conectar base de datos mysql con java 
Sql :: jdbc:sqlserver://localhost;username=MyUsername;password={pass";{}}word}; 
Sql :: sql how to display two atributes as one in sql 
Sql :: SQL Multiplication Operator 
Sql :: many to many getting data mysql 
Sql :: oracle APEX elapsed time 
Sql :: redudancy in SQL 
Sql :: plsql to generate all combinations of specified number of characters in string 
Sql :: lesser than or equal to symbol in postgres 
Sql :: c# add a textbox in mysql select 
Sql :: findAllBy 
Sql :: insert into database items linq2sql 
Sql :: selects all the columns from the sailors table 
Sql :: plsql regex match whole word 
Sql :: sql server setup commands 
Sql :: VSCode SQL Server Connection error 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =