Functions can be used anywhere in SQL, like AVG, COUNT, SUM, MIN, DATE and so on with select statements. Functions compile every time. Functions must return a value or result. Functions only work with input parameters.
Functions can be used anywhere in SQL, like AVG, COUNT, SUM, MIN, DATE and so on with select statements. Functions compile every time. Functions must return a value or result. Functions only work with input parameters.
This simple slideshare gives an Illustration of working with cookies in NodeJS. There is always a confusion of working with cookies and of which NPM to select when working with Cookies, Hope this removes all confusion.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
2. FUNCTIONS IN MYSQL
There are two types of functions in MySQL:
Single Row Functions : Single row functions operate on a single value to
return a single value. They return only one result per row. They are further
categorized into:
Numeric functions
String functions Date
Time functions
Multiple Row Functions: Multiple row functions operate on a set of rows to
return a single value. Examples include SUM(), AVG() and COUNT().
4. NUMERIC FUNCIONS
Numeric functions perform operations on numeric values and return numeric values. There are
three numeric functions which are available:
POWER(X,Y) OR POW(X,Y): It returns the value of X raised to the power of Y.
COMMAND OUTPUT EXPLANATION
SELECT POW(2,3) ; 8 2 X 2 X 2 =8
SELECT POW(2, -2); 0.25 1/22 = ¼ = 0.25
SELECT POW(-2,2); 4 -2 X -2 = 4
SELECT POW (-2,3); -8 -2 X -2 X -2 = -8
SELECT ITEMNO,
POW(PRICE,2) FROM ITEM;
5. ROUND FUNCTION
ROUND(X,D) function is used to round the value of argument X upto D decimal places.
If number of decimal places is not specified or is zero, the number rounds to the nearest integer OR 0
decimal places.
If negative value is specified for precision, it counts off that value left from the decimal point. If positive
value is specified for precision, it counts off that value right from the decimal point.
COMMAND RESULT EXPLNATION
SELECT ROUND(-4.45); -4 No. after decimal is less than 5
SELECT ROUND(-4.67); -5 No. after decimal is more than 5
SELECT ROUND(4.45); 4 No. after decimal is less than 5
SELECT ROUND(4.678,1); 4.7 No. at second place after decimal is more than 5
SELECT ROUND(4.678,0); 5 No. after decimal is more than 5
SELECT ROUND(56.345, -1); 60
SELECT ITEMNO, ROUND(PRICE) FROM
ITEM;
6. TRUNCATE FUNCTION
TRUNCATE(X,D) or TRUNC(X,D) returns the number X, truncated to D decimal places.
If D is 0, the result has no decimal point or fractional part.
If D is negative, it causes D digits left of the decimal point of the value X to become zero.
COMMAND OUTPUT
SELECT TRUNC(5.678,0); 5
SELECT TRUNC(3.768,1); 3.7
SELECT TRUNC(-9.87,1); -9.8
SELECT TRUNC(345, -2); 300
SELECT ITEMNO,TRUNC(PRICE,1)
ITEM;
7. STRING(CHARACTER) FUNCTION
String functions operate on character type data. They return either character or numeric
values.
LENGTH(str): Returns the length of the string str.
COMMAND OUTPUT
SELECT LENGTH(“COMPUTER”); 8
SELECT LENGTH(“ I AM LEARNING”); 13
SELECT ITEMNO, LENGTH(NAME) FROM
ITEM;
8. CONCAT FUNCTION
CONCAT(str1, str2,...) : Returns the string that results from concatenating the arguments.
COMMAND OUTPUT
SELECT CONCAT(“My”,
“SQL”, “CLASS”);
MySQLCLASS
SELECT CONCAT(“My”,
“SQL”,NULL, “CLASS”);
NULL
SELECT CONCAT(ITEMNO,
NAME), PRICE FROM ITEM;
CONCAT(Itemno, Name)
A001Bread
A002Butter
A003Biscuits
A004Eggs
A005Chocolate
9. INSTR FUNCTION
INSTR(str, substr) : Returns the position of the first occurrence of substring substr in
string str
COMMAND RESUL
T
EXPLANATION
SELECT INSTR(“My SQL”,
“SQL);
4 First match found
at 4th position
SELECT INSTR(“My SQL”,
“SQR”);
0 No match found
SELECT INSTR(NAME,
“BREAD”) FROM ITEM;
INSTR(NAME,”BREAD
”)
1
0
0
0
0
10. LOWER FUNCTION
LOWER(str) or LCASE(str): Returns the string str in lowercase.
COMMAND RESULT
SELECT
LOWER(“INFORMATICS”)
informatics
SELECT LOWER(NAME)
FROM EMP;
LOWER(Name)
bread
butter
biscuits
eggs
chocolate
11. UPPER FUNCTION
UPPER(str) or UCASE(str): Returns the string str in lowercase.
COMMAND RESULT
SELECT
UPPER(“INforMAtiCS”);
INFORMATICS
SELECT UPPER(NAME)
FROM EMP;
UPPER(Name)
BREAD
BUTTER
BISCUITS
EGGS
CHOCOLATE
12. LEFT FUNCTION
LEFT(str, N) : Returns the N characters from the left side of the string str.
COMMAND RESULT
SELECT LEFT(“My SQL”, 2); My
SELECT LEFT(NAME, 3) FROM ITEM;
LEFT(Name, 3)
Bre
But
Bis
Egg
Cho
13. RIGHT FUNCTION
RIGHT(str, N) : Returns the N characters from the right side of the string str.
COMMAND RESULT
SELECT RIGHT(“My SQL”, 3); SQL
SELECT RIGHT(NAME, 3) FROM ITEM;
RIGHT(Name)
ead
ter
its
ggs
ate
14. LTRIM FUNCTION
LTRIM(str) : Returns the leading spaces ie from the left side of the string str.
COMMAND RESULT
SELECT LTRIM(“
INFORMATICS”);
INFORMATICS
SELECT LTRIM(NAME)
FROM EMP;
LTRIM(Name)
Bread
Butter
Biscuits
Eggs
Chocolate
15. RTRIM FUNCTION
RTRIM(str) : Removes the trailing spaces ie from the right side of the string str.
COMMAND RESULT
SELECT RTRIM(“INFORMATICS
”);
INFORMATICS
SELECT RTRIM(NAME) FROM
EMP;
RTRIM(Name)
Bread
Butter
Biscuits
Eggs
Chocolate
16. TRIM FUNCTION
TRIM(str) : Removes both leading and trailing spaces from the string str .
COMMAND OUTPUT
SELECT TRIM(“ INFORMATICS
PRACTICES ”);
INFORMATICS
SELECT TRIM(NAME) FROM EMP;
TRIM(Name)
Bread
Butter
Biscuits
Eggs
Chocolate
17. SUBSTRING/SUBSTR/MID FUNCTION
SUBSTRING(str, M,N) or MID(str, M,N): Returns the specified number of characters from
the middle of the string. There are 3 arguments.
The first argument is the source string.
The second argument is the position of first character to be displayed.
The third argument is the number of characters to be displayed.
If the third argument is missing, then starting from the position specified, the rest of the
string is returned.
If the second argument is negative, then the beginning of the substring is M characters
from the end of the string.
18. SUBSTRING/SUBSTR/MID FUNCTION Contd…
COMMAND OUTPUT
SELECT SUBSTR(“WORLD OF COMPUTERS”, 4 ); or
SELECT SUBSTR(“WORLD OF COMPUTERS” FROM 4 );
LD OF COMPUTERS
SELECT SUBSTR(“WORLD OF COMPUTERS” , 3, 4 ); LD O
SELECT SUBSTR(“WORLD OF COMPUTERS”, -4 ); TERS
SELECT SUBSTR(“WORLD OF COMPUTERS”, -6,3 ); PUT
SELECT SUBSTR(“WORLD OF COMPUTERS” FROM -4
FOR 2 );
TE
SELECT SUBSTR(NAME,2,3) FROM ITEM;
SUBSTR(Nam
e,2,3)
rea
utt
isc
ggs
hoc
19. ASCII FUNCTION
ASCII(str): Returns the ASCII value of the leftmost character of the string str.
Returns 0 if str is an empty string.
Returns NULL if str is NULL.
COMMAND RESUL
T
EXPLANATION
SELECT ASCII(‘2’); 50 ASCII value of ‘0’ is 48, ‘1’ is 49 , ‘2’ is 50 and so on
SELECT ASCII(‘CG’); 67 ASCII value of ‘A’ is 65, ‘B’ is 66, ‘C’ is 67 and so on
SELECT ASCII(‘are’); 97 ASCII value of ‘a’ is 97, ‘b’ is 98 and so on
20. DATE AND TIME FUNCTION
COMMAND EXPLANATION EXAMPLE RESULT
CURDATE() Returns the current date in YYYY-
MM-DD format
SELECT CURDATE(); 2015-10-14
NOW() Returns the current date and time in
'YYYY-MM-DD HH:MM:SS'
SELECT NOW(); 2015-10-14 20:10:30
SYSDATE() Returns the current date and time in
'YYYY-MM-DD HH:MM:SS
SELECT SYSDATE(); 2015-10-14 20:10:30
DATE(exp) Extracts the date part of a date or
date time expression
SELECT DATE(‘2015-10-14
20:10:30’);
2015-10-14
MONTH(date) Returns the numeric month from the
date passed, in the range 0 to 12
SELECT MONTH(‘2015-10-
14’);
SELECT MONTH(DOP)
FROM ITEM;
10
21. DATE AND TIME FUNCTION Contd……
COMMAND EXPLANATION EXAMPLE RESULT
YEAR(date) Returns the year for date passed in
the range 0 to 9999
SELECT YEAR (‘2015-10-14’);
SELECT YEAR(DAP) FROM ITEM;
2015
DAYNAME(da
te)
returns the name of the weekday for
the date passed
SELECT DAYNAME(2015-10-14);
SELECT DAYNAME(DAP) FROM ITEM;
MONDAY
DAYOFMONT
H(date)
Returns the day of the month in the
range 0 to 31.
SELECT DAYOFMONTH(2015-10-14);
SELECT DAYOFMONTH(DAP) FROM
ITEM;
DAYOFWEEK(
date)
Returns the day of week in number
1 for Sunday, 2 for Monday and so
SELECT DAYOFWEEK(2015-10-14);
SELECT DAYOFWEEK(DAP) FROM
ITEM;
DAYOFYEAR(
ate)
Return the day of the year for the
given date in numeric format in the
range 1 to 366.
SELECT DAYOFYEAR(2015-10-14);
SELECT DAYOFYEAR(DAP) FROM ITEM;
22. SYSDATE() vs NOW()
SYSDATE() returns the time at which the function executes.
While NOW() which returns a constant time that indicates the
time at which the statement began to execute.