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
481k
How to use count in your query
May 11 2021 9:02 PM
Hi Team
I am struggling to get number of times, unit passed(Date-Passed column from Checkpoint-Movement table), PNR(column from Checkpoint-Movement table), Station Description(column from Station table). Given to the below tables; I want to filter between 06:00am-20:00pm today
/****** Script
for
SelectTopNRows command
from
SSMS ******/
SELECT
TOP
1000 [Station Code]
,[Machine
Name
]
,[Station Description]
,[IP Address]
,[Tracking Client
Name
]
,[Previous Station Code]
,[
Next
Station Code]
,[
Transaction
Code]
,[SQL_Instance]
,[rowguid]
FROM
[Tracking_Server_DB].[dbo].[TS_Station]
SELECT
TOP
1000 [Plant Code]
,[Production
Year
]
,[PNR]
,[KNR]
,[Colour]
,[Model Code]
,[Market]
,[Country]
,[
Transaction
Code]
,[DateTime Passed]
,[Telegram]
,[Hold Get]
,[
Option
Code 1]
,[EQS Carstate]
,[SeqNum]
,[RBSCode]
,[Return_CP_Name]
FROM
[Tracking_Server_DB].[dbo].[
Checkpoint
Movement]
Reply
Answers (
6
)
SQl Query to display as text as vertical
I want to Display Detail in a single Row