This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.model small | |
.stack 100h | |
.data | |
;a db ? | |
inp db 'INPUT: $' | |
level0 db 'You have reached level 0 $' | |
level01 db 'You have reached level 1 $' | |
level02 db 'You have reached level 2 $' | |
level03 db 'You have reached level 3 $' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;input A-I and display their corresponding ascii value | |
.model small | |
.stack 100h | |
.data | |
asc db '4' | |
inval db 'INVALID INPUT$' | |
x db ? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1)>> select customer_name,customer_city from customer where customer_name in (select customer_name from borrower); | |
2)>> select customer_name,customer_city from customer where customer_name in (select customer_name from borrower where loan_number in (select loan_number from loan where branch_name='Perryridge')); | |
3)>> select account_number,balance from account where balance between 700 and 900; | |
4)>> select customer_name,customer_street from customer where customer_street like '%Hill'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;add two numbers(input) and show two digits | |
.model small | |
.stack 100h | |
.data | |
num1 db ? | |
num2 db ? | |
res db ? | |
.code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;inter conversion between capital and small letters (show 0 if invalid letter) | |
.model small | |
.stack 100h | |
.data | |
input db ? | |
.code | |
main proc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;input char and check for vowel. Print 1 for vowel 0 otherwise | |
.model small | |
.stack 100h | |
.data | |
char db ? | |
vow db 30h | |
.code | |
main proc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;input char array. Count the number of vowels | |
.model small | |
.stack 100h | |
.data | |
vow db 30h | |
txt db 'Vowels: $' | |
.code | |
main proc | |
mov ax,@data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aggregate Function | |
1. Find the maximum,minimum, average salary and also the number of employees assigned to department 20. | |
>> select max(sal),min(sal),avg(sal),count(empno) from emp where deptno=20; | |
2. Find the maximum,minimum, average salary and also the number of employees employed under designation ‘Salesman’. | |
>> select max(sal),min(sal),avg(sal),count(empno) from emp group by job having job='SALESMAN'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var person=prompt("Please enter your name: "); | |
if(person==null || person==""){ | |
document.write("WTF !! Where is your name ??"); | |
}else{ | |
document.write("Hello "+person); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.model small | |
.stack 100h | |
.data | |
txt1 db 'Enter two numbers: $' | |
txt2 db 'The sum of $' | |
txt3 db ' and $' | |
txt4 db ' is : $' | |
num1 db ? | |
num2 db ? |