STRUCTURED QUERY LANGUAGE(SQL) Created by: B Mokshagna Reddy (BMR) SQL DATA DEFINITION AND DATATYPES SQL Schema: An SQL schema is identified by a schema name and includes an authorization identifier name to indicate user or account who owns the schema, as well as descriptor for each elements in the schema. Schema creation with authorization: CREATE SCHEMA DATABASE_NAME AUTHORIZATION IDENTIFIER; Eg: CREATE SCHEMA COMPANY AUTHORIZATION ‘JSMITH’; Catalog: Named collection of schemas. Data Definition, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descriptions of the tables (relations) of a database Creating a Database Syntax: CREATE DATABASE database_name; Creating a Table Syntax CREATE TABLE table_name (Column_name datatype[(size)], Column_name datatype[(size)], ); Specifies a new base relation by giving it a name, and specifying each of...
CSS SELECTORS Created by: B Mokshagna Reddy (BMR) CSS Selectors ➢CSS selectors are used to "find" (or select) the HTML elements you want to style. ➢We can divide CSS selectors into five categories: ➢Simple selectors (select elements based on name, id, class) ➢Combinator selectors (select elements based on a specific relationship between them) ➢Pseudo-class selectors (select elements based on a certain state) ➢Pseudo-elements selectors (select and style a part of an element) ➢Attribute selectors (select elements based on an attribute or attribute value) The CSS Element Selectors ➢The element selector selects HTML elements based on the element name. Example p {font-size: 10px;color:red; } The CSS id Selectors ➢The id selector uses the id attribute of an HTML element to select a specific element. ➢The id of an element is unique within a page, so the id selector is used to select one unique...