AmitDiwan has Published 10740 Articles

HTML Window innerWidth Property

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 11:02:45

347 Views

The HTML Window innerWidth property returns the width of the content area of a window in an HTML document.SyntaxFollowing is the syntax −window.innerWidthLet us see an example of HTML Window innerWidth Property −Example Live Demo    body {       color: #000;       height: 100vh;   ... Read More

HTML Window innerHeight Property

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 10:59:47

284 Views

The HTML Window innerHeight property returns the height of the content area of a window in an HTML document.SyntaxFollowing is the syntax −window.innerHeightLet us see an example of HTML Window innerHeight Property −Example Live Demo    body {       color: #000;       height: 100vh;   ... Read More

HTML Window length Property

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 10:43:32

200 Views

The HTML Window length property returns the number of elements in the current HTML document.SyntaxFollowing is the syntax −window.lengthLet us see an example of HTML Window length property −Example Live Demo    body {       color: #000;       height: 100vh;       background-color: ... Read More

HTML5 Mathematical operators

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 10:40:41

2K+ Views

The HTML5 mathematical operators are used for mathematical and technical operators’ representation in an HTML document. So, to use such operators to web page, we use HTML entity name. If no entity name exists then you can use entity number which is a decimal or a hexadecimal reference.SyntaxFollowing is the ... Read More

MySQL CREATE statement with KEY keyword

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 08:56:32

214 Views

As stated in the official docs −KEY is normally a synonym for INDEX. The key attribute PRIMARY KEY can also be specified as just KEY when given in a column definition. This was implemented for compatibility with other database systems.Let us first create a table −mysql> create table DemoTable ( ... Read More

MySQL query to select a specific string with special characters

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 08:53:51

815 Views

Let us first create a table −mysql> create table DemoTable (    Title text ); Query OK, 0 rows affected (0.66 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('MySQL'); Query OK, 1 row affected (0.16 sec) mysql> insert into DemoTable values('MongoDB\'s'); Query OK, 1 ... Read More

How to perform conditional GROUP BY in MySQL to fetch?

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 08:52:18

365 Views

Let us first create a table −mysql> create table DemoTable (    StudentName varchar(40),    StudentMarks int ); Query OK, 0 rows affected (0.64 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('John', 78); Query OK, 1 row affected (0.14 sec) mysql> insert into DemoTable ... Read More

Display two different columns from two different tables with ORDER BY?

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 08:50:21

699 Views

For this, you can use UNION along with the ORDER BY clause. Let us first create a table −mysql> create table DemoTable1 (    Amount int ); Query OK, 0 rows affected (0.63 sec)Insert some records in the table using insert command −mysql> insert into DemoTable1 values(234); Query OK, 1 ... Read More

Using MySQL keywords in a query surrounded with single quotes?

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 08:47:54

160 Views

If there are multiple MySQL keywords in a query, use backticks symbol rather than single quotes. Let us first create a table. Here, we have used two reserved keywords i.e. ‘key’ and ‘Limit’ −mysql> create table DemoTable (    `key` int NOT NULL AUTO_INCREMENT PRIMARY KEY ,    `Limit` int ... Read More

MySQL SELECT to skip first N results?

AmitDiwan

AmitDiwan

Updated on 01-Oct-2019 08:46:17

378 Views

To skip records in MySQL SELECT, use OFFSET. Let us first create a table−mysql> create table DemoTable (    Name varchar(40) ); Query OK, 0 rows affected (0.63 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('Chris'); Query OK, 1 row affected (0.22 sec) mysql> ... Read More

Advertisements