TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
2.1k
474.3k
Query to return all lists of invoices ordered by billing date?
Nov 11 2020 2:43 PM
Hi Team
I need some help, i have two tables here below "Invoices and Customers". Write sql query to return a list of all invoices. each invoice, show the invoice Id, billing date, the customer name, the name of the customer who refered. Should be order by billing date?
// Invoices
SELECT
TOP
(1000) [Id]
,[BillingDate]
,[CustomerId]
FROM
[eNtsaRegistration].[dbo].[Invoices]
// Customers
SELECT
TOP
(1000) [Id]
,[
Name
]
,[ReferredBy]
FROM
[eNtsaRegistration].[dbo].[Customers]
Reply
Answers (
2
)
How to explain this logic and ways to avoid?
Conditional Running of a Step in SQL Server Job