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
472.6k
how to use sql query for optimizing application
May 18 2021 12:52 PM
Hi Team
I have a query that checks for units being read and misread. Now the query works fine, how will implement this query to be readable to people in the existing application(windows application)? I was advice that using store procedured to the database table will break this windows application completely.
// Requirement
The production shift leader(s) are finding that the total is not reflecting the correct number of units processed at the end of lego line and need to have a check in place to validate the units counted
SELECT
TOP
1000
[Production
Year
]
,[PNR]
,[KNR]
,[
Transaction
Code]
,[DateTime Passed]
,[EQS Carstate]
,[SeqNum]
FROM
[Tracking_Server_DB].[dbo].[
Checkpoint
Movement]
WHERE
[
Transaction
Code]
like
'%T0013'
and
[DateTime Passed]
between
'2021-05-11 06:00:00'
and
'2021-05-11 19:59:59'
and
PNR
not
in
(
SELECT
PNR
FROM
[Tracking_Server_DB].[dbo].[
Checkpoint
Movement]
WHERE
[
Transaction
Code]
like
'%T0067%'
and
[DateTime Passed]
between
'2021-05-11 06:00:00'
and
'2021-05-11 19:59:59'
)
Order
by
[DateTime Passed]
// Output of this query is as image.
Reply
Answers (
1
)
sending otp in email after submit form
ASP.net core web API debugging issue in already exist project