Tips - For CS and IP
Tips - For CS and IP
Difference between
2. Checks for any specified values or list of values :in and not in
Describe tablename
4. To add col and remove col, add primary key, change data type, rename colname:
Alter table
FOR IP only
USE OF POW()
Pow(base, exponent)
We can use pow or power ()
SELECT POW(5, 2);
Result:
25
POW(5, -2)
0.04
POW(5, -3);
Result:
0.008
SELECT
POW(-5, -2)
0.04
POW(-5, -3);
Result:
-0.008
USE OF MOD()
MOD(11,2)- 1 ( remainder)
MOD(-11,2)
-1
USE OF ROUND()
Round(45677.344)- whole integer- 45677
Round(45677.674,0)- whole integer- 45678
Round(45677.344,1)- 45677.3
Round(45677.674,2)- 45677.67
Round(45677.677,2)- 45677.68
Round(45677.677,3)- 45677.677
Round(45677.677,4)- 45677.677
Round(45677.677,-1)- 45680
Round(45677.677,-2)- 45700
Round(45643.677,-2)- 45600
Round(45643.677,-4)-50000
Round(45643.677,-5)-0
Round(45643.677,-6)-0
Round(55643.677,-5)-100000
Networking:
Server is to be made where the number of computers is maximum, make star topology and keep
server in center.
Modem- Analog to digital and digital to analog, connect computers via Telephone lines
Hub- Connect computers and broadcast , does not filter, cheaper, share bandwidth
Switch- intelligent hub, filter and retransmits the corrupted signals, dedicated bandwidth, unicast
and sends only to intended node, different LAN segments of a large network
Router- connects LANs and to Internet, routes the same network to multiple devices, operates on IP
address
Bridge:- Connect similar LANS and segments of LANS , works on MAC address with filtering
Gateway- Acts as an Entry and Exit point to one network , connects dissimilar LANs, Eg. ISP
Type of network:
Transmission Media
Wireless
Placement:
Hub/switch- within each building to connect all the computers or devices within a network
Modem/Antivirus/Firewall- Server
Internet availability- Broadband connection, if connection via telephones lines/dial up, suggest
modem also
Plugins/Addons
Addons- Extensions or tools to enhance the functionality of browser like pdf to doc
Examples:
Web Server- Apache( Free and Open source), IIS ( Internet Information Server, Proprietary by
Microsoft)
Parts of URL:
Protocol, name of the website, domain names, address of web page
https://www.cbse.nic.in/aboutus.php
Website: www.cbse.nic.in
Top level- in
Protocols used:
TCP- Breaks the message into smaller data packets and arranges/rearranges at sender or receiver
end
IP- Transmits the data packets from sender to receiver based on IP address mentioned on Data
packets
MAC address- Period after every two digits: - 00.00.0A.BB.28.FC, 6 bytes, physical, static, can’t be
changed
FULL FORMS