SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 don't know how to write this in sql sever
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

boris1610
Starting Member

Netherlands Antilles
3 Posts

Posted - 03/29/2014 :  17:19:11  Show Profile  Reply with Quote
Hi every one I am new with Sql server I got a lot experience with oracle but now i have to change to SQL server. Can somebody help
I want to write this oracle statement in sql sever 2012. This is the statement
SELECT
COUNT(*)Aantal_AANGIFTEN
FROM AWTSTUNADM.SAD_GENERAL_SEGMENT gen,
awtstunadm.un_asybrk_track track,
awtstunadm.un_asybrk_ied ied
WHERE ied.instance_id = gen.instanceid
and ied.binder_id = 'B_asysad'
and ied.ied_id = track.ied_ID
and track.doc_ver =
(
select
max(Doc_ver)
from awtstunadm.un_asybrk_track
where ied_id = ied.ied_id
)
and track.status != 'Cancelled'

SwePeso
Patron Saint of Lost Yaks

Sweden
30281 Posts

Posted - 03/30/2014 :  06:13:18  Show Profile  Visit SwePeso's Homepage  Reply with Quote
What is the error you get? The statements looks fine to me at the first glance.



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.44 seconds. Powered By: Snitz Forums 2000