« first day (2313 days earlier)      last day (2005 days later) » 

6:47 AM
Morning fellas
@hichame.yessou i would prefer you to go through this forum :
https://www.sqlservercentral.com/Forums/Topic1232868-360-1.aspx
@WhatsThePoint great, Lets expect for the best :P
@A.W. if it is being transferred from interface to database and you are not nullifying the value if the string is empty on web-app/win-app side then you got to put validation for both the scenarios.
 
7:14 AM
@ARr0w as long as i get 40% im golden, for this year of work i can only either pass or fail, and anything above the mark doesnt count extra for anything so im not too worried
 
ey guys
back from 2 week vacation
 
and who let you do that then? certainly not one of us
 
that's true man ...
but damn ... have not done anything for all 2 weeks .. just played games, slept and chill with my girl
 
thats it, not more days off, not even christmas :D
jks, glad you had a good rest break
 
thanks bro :D i seen you needed some pl sql stuff
you got it all sorted now i believe?
 
7:17 AM
yeah what i needed the other week is sorted
 
7:35 AM
@WhatsThePoint let's think hypothetically about your result that what if you get 80% cause the professor gets drunk because of some random reason and then checks your assignment and goes 'ah fuck it, giving you 80% kid'
enjoy it
@Veljko89 welcome back bro! how was it?
 
@ARr0w well that would be nice :D
 
@WhatsThePoint give him reasons to drink before checking the assignments or give him stress!!
 
@ARr0w i dont know whos marking it
 
@WhatsThePoint aww ... taps your back you're a strong boy.
 
8:27 AM
o7
 
 
2 hours later…
Sly
10:49 AM
Good morning people!
I still haven't found a solution to my query, any suggestion will be appreciated
 
11:22 AM
@Sly , create a fiddle with sample data and your query.

https://dbfiddle.uk/
 
11:43 AM
Hi friends..
 
hi friend...
 
in a movie-ticket-booking app, if there are two tables like "seats" and "reserved seats", so how would u fetch all the available seats?
 
Sly
@ARr0w,tried that and getting syntax error
 
@sly share the dbfiddle link
if you have prepared with sample data.
 
@ARr0w
any clue?
 
11:49 AM
@ArunRaaj

assuming your 'seats' table's primary col is referenced in 'reserved seats' table. Considering 'seatID'

select * from seats s where not exists (Select SeatId from dbo.[reserved_seats] rs where rs.SeatId = s.seatId)
 
is it JOIN?
Thanks, got it
 
Sly
Forgive me, am not very familiar with dbfiddle, how do I extract the link. I have my query there but cant find a way to get the link or it just the url after I execute my query?
 
@Sly just copy paste the url here.
 
that's only the query there. Where's the sample data?
create a replicate data of what you have in your actual database with some data on this fiddle.
like create table ....
insert values in to table ...?

and then this fetch query ...
 
Sly
12:02 PM
got it
 
@ArunRaaj no, it is used as sub-query and 'not exists' is the syntax of 'sql server (SSMS)' which returns boolean value to either return the matching record or not.

welcome :)
 
12:42 PM
@ArunRaaj select * from seats s where s.seat_id not in (select seat_id from reserved_seats)
 
Sly
@ARr0w here is my oracle ddl statements I can execute them in my environment but when I try them on fiddle they do work.
CREATE TABLE WC_APPLICATION_EVENT_F22 (
JOB_INFO_ROW_WID NUMBER(5)PRIMARY KEY,
PI_CANDIDATE_NUM NUMBER(5),
Candidate_name VARCHAR2(15) NOT NULL,
PI_HIS_ITM_APP_TRK_CREATION_DT DATE,
PI_HIS_ITM_APP_TRK_STEP_NAME VARCHAR2(15),
PI_HIS_ITM_APP_TRK_STS_NAME VARCHAR2(15));
 
12:55 PM
do work?
this is just one table and no data insertion is applied yet?
 
Sly
I have not applied the data insert yet because its not running in fiddle and that's where I wanted to inster the data, I have the script for the other tables as well
 
you didn't select the database engine in the top dropdown selection of this page
though i did and used your definition, executed it, it worked
 
1:28 PM
Hi everyone, can anyone help me pls?
0
Q: create sql query based flow filter

Cátia MatosI'm trying to create the sql query code based on a flow filter calc formula So I have the table "Vendor Ledger Entry" with two important fields called "Amount" and "Remaining Amount". Both fields are flowfiltes, calculated based on formulas with other tables (in this case Detailed Vendor Ledger...

 
Sly
it worked for me as well. but data insert saying invalid character even though I can instert data in my environment using this (INSERT INTO WC_APPLICATION_EVENT_F22 (JOB_INFO_ROW_WID , PI_CANDIDATE_NUM, CANDIDATE_NAME , PI_HIS_ITM_APP_TRK_CREATION_DT, PI_HIS_ITM_APP_TRK_STEP_NAME, PI_HIS_ITM_APP_TRK_STS_NAME )
VALUES (4160, 75485, 'John K', (TO_DATE('2003/05/03 21:02:44', 'yyyy/mm/dd hh24:mi:ss')), 'Offer', 'Accepted');
)
@ARr0w here is what I using in my database for insert but getting character error in fiddle (INSERT INTO WC_APPLICATION_EVENT_F22 (JOB_INFO_ROW_WID , PI_CANDIDATE_NUM, CANDIDATE_NAME , PI_HIS_ITM_APP_TRK_CREATION_DT, PI_HIS_ITM_APP_TRK_STEP_NAME, PI_HIS_ITM_APP_TRK_STS_NAME )
VALUES (4160, 75485, 'John K', (TO_DATE('2003/05/03 21:02:44', 'yyyy/mm/dd hh24:mi:ss')), 'Offer', 'Accepted');
)
 
1:44 PM
 
Sly
@ARr0w- thanks,Let me create the rest of the table and we can go from tehre
*there
@ARr0w Just curious what did you do to make the query run?
@ARr0w here is my DDL and the sample data. please let me know if that's enough
 
2:47 PM
hey
 
@AndyK hello brother. Just saw the screen. By the way i'm leavign for home.
@Sly you fforgot to attach the fiddle link . We'll continue tom.
later guys. Take care.
 
3:16 PM
@ARr0w hey bro
 
 
1 hour later…
4:17 PM
cya
 

« first day (2313 days earlier)      last day (2005 days later) »