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
David Green
NA
68
1.6k
need a sql script to produce a result from 2 tables
Feb 4 2018 2:31 PM
Hi guys, I have been struggling witha query that is proably something simple, but I can see the wood form the trees for it.
I have two tables
Table 1
ID
Name
Table 2
Table1ID
Date
Task
i need to get a grid result, that will give me the next 7 das results for each name, even if nothign is in the date or task result.
I want this result from the current date for the next 7 days on screen,
Producing somethign like this
name
01/01/2018
02/01/2018
03/01/2018
04/01/2018
05/01/2018
06/01/2018
07/01/2018
bob1
task
task
task
task
bob2
task
task
task
bob3
task
task
task
task
bob4
task
task
task
bob5
task
bob6
task
task
task
task
bob7
task
task
task
A, how can I product a sql result and what is thr string to use?
Im stuck and I cant work it out.
And 2
how can I get a repeater result to show on screen.
I would like it to be a rolling screen and result tht will work on a day to day basis.
what query strignwould you use tog get a result like the above with empty strings next to the names and only show whats allocated?
Thanks in advance
Dave
Reply
Answers (
5
)
how to connect mysql worckbench local datbase server
Concurrency Issue