« first day (2148 days earlier)      last day (510 days later) » 

5:28 PM
Hello guys. I need help.
I have table user_id, starts_at and ends_at which is used like user schedule(type availability)
Lets user add that he is available from 2017-02-02 16:00:00 to 2017-02-02 18:00:00
and one more from 2017-02-02 18:00:00 to 2017-02-02 20:00:00 (two rows in db)
I search for available user btw 17:00 and 19:00
How I can be sure that there is no gap btw user`s events(added rows in db).
I dont want to get user if the user has next schedule:
from 2017-02-02 16:00:00 to 2017-02-02 18:00:00
and one more from 2017-02-02 19:00:00 to 2017-02-02 20:00:00
And of course have in your mind that user can have two events without gap btw them and one more with gap (so 3 events )
How I can handle it? Could you help me
With two words it is regular avilability schelude
 
 
4 hours later…
9:55 PM
@SunMaungOo Cool, glad you could figure it out :-)
@Dodi82 sup.
@Anton_Sh Can you rephrase what you're searching for?
Something like "I want to find all users that do not have any events overlapping the time period between 17:00 and 19:00"
(is that rephrase accurate?)
 
10:54 PM
Is anyone a wake
is it possible to do math symbols
$\pi$
 
11:34 PM
@TehShrike hi there
Are you still awake?
@J.doe I am a wake and dizzy trying to sort out the Credentials on the SQL server proxy
 
@Dodi82 yarp!
 
I see, I am new to databases , trying to do some relation algebra
 
@J.doe What database system are you using?
 
could you give me some help maybe?
0
Q: retrieve correct data from my schemas

J.doe I would like to retrieve the Names of teachers who teach more than 1 course I am really stuck on how to do it , all I know is that I need to consider the Course schema and operate on it , could I get some advice in terms of pi,sigma,rho etc (not i any specifik database language)?

postgres
 
Check the Postgres docs, I imagine it has a page like this one dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html
 
11:38 PM
Iam just doing very basic stuff to get a hold of databases
 
@TehShrike but did u read my Q ? have you got an advice ?
I feel that Q will be down voted for it being to basic, maybe i should remove it
 
@J.doe Is this for a homework problem?
 
yes
 
Your teacher is using some confusing language, I wonder if they're not familiar with using SQL in practice
 
11:41 PM
I don't know , what do you refer to
 
But you can answer the question with a simple SELECT query with a single JOIN
 
?
 
Has your class covered JOIN and GROUP BY?
 
tehshirke only natural join
 
Do you have an example schema with data to test against?
Have you ever used a real database to create tables or run queries?
 
11:43 PM
no, it was not provided however I could build one
 
I would recommend building one so that you can test your query
But I wonder what your teacher is actually asking for
 
@TehShrike no I am new to databases
 
Since you said "not any specific database language"
 
@TehShrike
for example, if I want to take out the names of all student, then I would join Students and with Persons , and after that I would take out, project the "name" column
But I can't do "pi" or "join" symbols in this chatroom
 
11:58 PM
@TehShrike do you know how to solve proxy authentication on sql server agent
I have been working on it all day long and tried so many different option but has no luck
 

« first day (2148 days earlier)      last day (510 days later) »