0% found this document useful (0 votes)
40 views1 page

SQL Topics Script

The document discusses various SQL concepts including inner joins with duplicates, tracking punch in and out times, union and difference operations, cumulative sums, and grouping sets. It also includes code snippets in Python demonstrating random integer matrices, creating a Pandas series from lists, and using the Pandas merge function. The document ends with a password and brief note about preventive calling and inclusions.

Uploaded by

Atulya garg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views1 page

SQL Topics Script

The document discusses various SQL concepts including inner joins with duplicates, tracking punch in and out times, union and difference operations, cumulative sums, and grouping sets. It also includes code snippets in Python demonstrating random integer matrices, creating a Pandas series from lists, and using the Pandas merge function. The document ends with a password and brief note about preventive calling and inclusions.

Uploaded by

Atulya garg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Order of execution

Inner join with duplicates


Punch in Punch out time
union all and union difference
cumulative sumin sql
grouping set
lead/lag - windows function

--------
randint_matrix1 = np.random.randint(1,10,10).reshape(2,5)
print(randint_matrix1)
print('')
randint_matrix2 = np.random.randint(10,20,10).reshape(2,5)
print(randint_matrix2)

--------
operators = ['AT&T', 'Verizon', 'T-Mobile US', 'US Cellular']
revenue = [171.76, 128.29, 68.4, 4.04]

#creating a Series from lists


telecom = pd.Series(revenue, index=operators)
telecom
telecom[[0,2,3]]

-----
#merge function
pd.merge(data_cust,data_cust_new,how='right',on='customerID')

------
E98bGVZVhJ7g65GGj2pT

preventive calling - from where inclusions is coming (FH)

RM level summary

You might also like