sql
stringlengths
6
1.05M
<reponame>SamArtGS/Scooters-Anywhere<gh_stars>0 INSERT INTO TARJETA_PREPAGO (TARJETA_PREPAGO_ID, USUARIO_ID, CODIGO_BARRAS, FECHA_REGISTRO, FECHA_EXPIRACION, IMPORTE) VALUES (SEQ_TARJETA_PREPAGO.NEXTVAL, null, 77881628245538045411,null,null, 500); INSERT INTO TARJETA_PREPAGO (TARJETA_PREPAGO_ID, USUARIO_ID, CODIGO_BAR...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 26-06-2021 a las 23:15:28 -- Versión del servidor: 5.7.31 -- Versión de PHP: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
CREATE TABLE fee_grant_allowance ( id SERIAL NOT NULL PRIMARY KEY, grantee_address TEXT NOT NULL REFERENCES account (address), granter_address TEXT NOT NULL REFERENCES account (address), allowance JSONB NOT NULL DEFAULT '{}'::JSONB, height ...
<reponame>GIselleAlmeida/Done -- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 06-Jun-2017 às 15:16 -- Versão do servidor: 10.1.21-MariaDB -- PHP Version: 7.0.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
CREATE DEFINER=`root`@`localhost` PROCEDURE `getDetailAdmin`( IN idAdminInput int ) BEGIN Select admin.id, admin.username, admin.pass, admin.nama FROM admin WHERE admin.id = idAdminInput; END
<gh_stars>1-10 ------------------START------------------ update egadtax_category set version=0 where version is null; update egadtax_unitofmeasure set version=0 where version is null; update egadtax_rates_class set version=0 where version is null; update eg_module set enabled=true where name='AdvertisementTaxReports'...
ALTER TABLE project ADD COLUMN IF NOT EXISTS product_owner TEXT, ADD COLUMN IF NOT EXISTS tech_lead TEXT; CREATE TABLE IF NOT EXISTS project_milestone ( id SERIAL PRIMARY KEY, title VARCHAR(250), description TEXT, date DATE, project_id INTEGER REFERENCES pro...
USE WideWorldImporters SET STATISTICS IO ON; SET STATISTICS TIME ON; ------ -- Show me the sales statistics behind each customers past 5 orders ----- ;WITH SEGMENTATION AS ( SELECT ROW_NUMBER() OVER (PARTITION BY SI.InvoiceID ORDER BY SI.InvoiceDate DESC) AS rn , SI.CustomerId , SIL.ExtendedPrice FROM Sales.In...
CREATE TABLE [dbo].[QRTZ_FIRED_TRIGGERS] ( [SCHED_NAME] NVARCHAR (120) NOT NULL, [ENTRY_ID] NVARCHAR (140) NOT NULL, [TRIGGER_NAME] NVARCHAR (150) NOT NULL, [TRIGGER_GROUP] NVARCHAR (150) NOT NULL, [INSTANCE_NAME] NVARCHAR (200) NOT NULL, [FIRED_TIME] BIGINT ...
INSERT INTO body_part_group(id, name) VALUES (uuid_bin('2d645926-b365-4563-8a5e-a6cbb7e1fb3b'), 'humanoid') ON DUPLICATE KEY UPDATE name=VALUES(name); INSERT INTO body_part_template(id, body_part_group_id, name, capabilities, wear_location, connection) VALUES (uuid_bin('26bb4127-f3ab-4bc5-bb0c-b931a28900be'), uuid_b...
DELETE FROM `command` WHERE `name` = 'learn all_default'; INSERT INTO `command` VALUES ('learn all_default',1,'Syntax: .learn all_default [$playername]\r\n\r\nLearn for selected/$playername player all default spells for his race/class and spells rewarded by completed quests.');
<gh_stars>0 drop table if exists act_flow_node; drop table if exists act_flow_node_dept; drop table if exists act_flow_node_role; drop table if exists act_flow_node_user; /*==============================================================*/ /* Table: act_flow_node */ /*======...
INSERT INTO City VALUES (1, 1, 'Aberdeen'), (2, 1, 'Abilene'), (3, 1, 'Akron'), (4, 1, 'Albany'), (5, 1, 'Albuquerque'), (6, 1, 'Alexandria'), (7, 1, 'Allentown'), (8, 2, 'Amarillo'), (9, 2, 'Anaheim'), (10, 2, 'Anchorage'), (11, 2, '<NAME>'), (12, 2, 'Antioch'), (13, 2, '<NAME>'), (14, 2, 'Appleton'), (15, 3, 'Arlingt...
CREATE TABLE [dbo].[Capabilities] ( [Id] UNIQUEIDENTIFIER NOT NULL, [BusinessUnitId] UNIQUEIDENTIFIER NULL, [SoftwareModelId] UNIQUEIDENTIFIER NOT NULL, [ScenarioId] UNIQUEIDENTIFIER NULL, [DisplayName] NVARCHAR (100) NOT NULL, [Description] ...
<reponame>miclill/sqlx with accounts (id, name) as ( VALUES (1, '<NAME>') ) select * from accounts where id = ?;
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50548 Source Host : localhost:3306 Source Database : bus Target Server Type : MYSQL Target Server Version : 50548 File Encoding : 65001 Date: 2016-05-29 23:56:17 */ SET FOREIGN_KEY_CHECKS=...
-- @testpoint:opengauss关键字pool(非保留),作为外部数据源名 --关键字不带引号-成功 drop data source if exists pool; create data source pool; drop data source pool; --关键字带双引号-成功 drop data source if exists "pool"; create data source "pool"; drop data source "pool"; --关键字带单引号-合理报错 drop data source if exists 'pool'; create data source 'pool'; ...
<gh_stars>0 USE [PublicationsContext] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Categories]( [Id] [int] IDENTITY(1,1) NOT NULL, [Category] [nvarchar](max) NOT NULL, CONSTRAINT [PK_dbo.Categories] PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF...
<reponame>stevendenniston/digitalcounterfeit.mediaplayer CREATE TABLE [dbo].[PlaylistTrack] ( [PlaylistId] UNIQUEIDENTIFIER, [AudioTrackId] UNIQUEIDENTIFIER ) GO;
<filename>zignet.db/script-backups/delete-old-records.sql SELECT * FROM TestResults WHERE TestResultStartDateTime < '4/27/2018' -- highest TestResultID: 710030 SELECT * FROM TestResult_TestFailureDetails WHERE TestResultId <= 710030 -- highest TestFailureDetailId: 135837 DELETE FROM TestResult_TestFailureDetails WHER...
<gh_stars>0 PARA DAR BAIXA NO ESTOQUE CODPROD = 883841 SELECT * FROM PCMOVCIAP WHERE CODPROD = 883841; --AND CODOPER = 'SD'; --CODFUNCBENEFICIADO, NUMEROSOLICITACAO, VLITEM, QTCONT, DATABAIXA, CODOPER, CODFUNLANC SELECT CODFILIAL, QTESTGER, QTRESERV, DATAHORAULTIMAENTRADA, DATAHORAULTIMAENTRADAANTERIOR, QTULTIM...
<filename>src/main/resources/db/migration/V1__Init_DB.sql create sequence hibernate_sequence start 1 increment 1; create table author ( id int8 not null, description varchar(2048), image_filename varchar(255), name varchar(128), primary key (id) ); create table books ( id int8 not null, bo...
<gh_stars>1-10 SELECT narratives.report_key, devices.brand_name, devices.generic_name, devices.model_number, contacts.name, deviceproblemcodes.description, narratives.text FROM narratives, devices, contacts, deviceproblems, deviceproblemcodes WHERE narratives.text like '%blue screen%' AND narratives.report_key = devic...
<reponame>aventri/mysql-monitor<gh_stars>10-100 GRANT REPLICATION SLAVE, REPLICATION CLIENT, SELECT ON *.* TO 'monitor'@'%'; USE monitor_test; CREATE TABLE monitor_test_data ( `id` INTEGER AUTO_INCREMENT PRIMARY KEY, `text` VARCHAR(255), `number` INT, `datetime` DATETIME ); INSERT INTO monitor_test_data (`te...
<gh_stars>1-10 drop table asmfiles purge; drop table diskgroups purge; drop table snapspace purge; @@config create table &&asmspc_owner..DISKGROUPS ( group_number number, name varchar2(30), sector_size number, snap_id number, block_size number, ...
<reponame>mingji2209/ssm-framework<filename>database/script.sql create schema `ssm_framework` default character set utf8 collate utf8_bin ; use ssm_framework; drop table if exists `sys_user`; create table `sys_user` ( `id` bigint(11) not null auto_increment, `user_name` varchar(255) default null comment '用户名', ...
-- Step By Step Development of Description Composite Views from Concepts, Descriptions and Language refsets -- STEP 2: Show all ACTIVE descriptions for a concept. SELECT * FROM snap_description WHERE conceptId = 80146002 AND active=1; -- Run this query. -- Note that: -- 1. The inactive description shown in the p...
-- ============================================================================ -- Copyright (c) 2004-2017 <NAME> (<EMAIL>) -- ============================================================================ -- Author : <NAME> -- Create date : 14.06.2017 -- Module : Database Analysis & Performance Monitoring -- ===...
-- file:aggregates.sql ln:343 expect:true create temp table t2 (x int, y int, z int, primary key (x, y))
<reponame>AhmedShibbir/Distributed-Canteen-Management-Project create or replace procedure top_booking_customer(givenDate in VARCHAR) is customerName customer1.C_NAME%type; n number; customerName1 customer2.C_NAME%type; n1 number; cursor DC_cur is SELECT C_NAME , count(c_name) FROM customer1 c ,booking1 r ...
<gh_stars>0 -- mysql -u root --password=<PASSWORD> -h 192.168.68.106 < bd.sql ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '<PASSWORD>'; FLUSH PRIVILEGES; CREATE DATABASE docker; use docker; CREATE TABLE IF NOT EXISTS aula ( aula_id INT AUTO_INCREMENT PRIMARY KEY, nome VARCHAR(255) NOT NULL, ...
SELECT OrderDate FROM Orders WHERE OrderDate BETWEEN '1998-01-01' AND '1998-05-06'
-- Code generated by build_sql.awk; DO NOT EDIT. update user_urls set title = :title, favorite = :favorite, updated_at = CURRENT_TIMESTAMP where user_id = :user.id and id = :id
<gh_stars>1-10 DROP VIEW vw_rsk; DROP VIEW vw_rsk_failure; ALTER TABLE rsk_run ALTER COLUMN create_instant SET DATA TYPE timestamp with time zone; ALTER TABLE rsk_run ALTER COLUMN start_instant SET DATA TYPE timestamp with time zone; ALTER TABLE rsk_run ALTER COLUMN end_instant SET DATA TYPE timestamp with time zone; ...
CREATE SCHEMA IF NOT EXISTS polar_replica; set search_path=polar_replica,sys; alter system set polar_create_table_with_full_replica_identity = off; select pg_reload_conf(); select pg_sleep(2); show polar_create_table_with_full_replica_identity; create table t_a(a int, b int); create table t_b(a int primary key, b...
<reponame>Cr4ziEsT/TIL -- 권한 insert into role (id, name) values (null, 'ADMIN'); insert into role (id, name) values (null, 'VIP'); insert into role (id, name) values (null, 'USER'); -- 회원 insert into member(id, email, name, nickname, password, phone_num, home_address, zip_code, height, weight, gender, birth_day, point...
<gh_stars>0 CREATE TABLE `students` ( `id` INT NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(50) NULL DEFAULT NULL, `last_name` VARCHAR(50) NULL DEFAULT NULL, `age` INT NULL DEFAULT NULL, `g...
INSERT INTO `languages` (`id`, `language`) VALUES (1, 'Română'), (2, 'Rusă'), (3, 'Franceză'), (4, 'Engleză'), (5, 'Germană');
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Czas generowania: 01 Wrz 2021, 10:59 -- Wersja serwera: 10.4.20-MariaDB -- Wersja PHP: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
USE burger_db; INSERT INTO burger (burger_name) VALUES ("Big Mac"); INSERT INTO burger (burger_name) VALUES ("Quarter Pounder with Cheese"); INSERT INTO burger (burger_name) VALUES ("Cookout Burger");
Create Table "Student" ( "id" TEXT NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, "username" TEXT NOT NOT, "email" TEXT NOT NULL, "password" TEXT, "status" TEXT NOT NULL DEFAULT "active" PRIMARY KEY ("id"); ); Create Table "Teach...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 21, 2019 at 02:46 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<gh_stars>1-10 -- Revert auctioneer-bot:initial_recipe_version from pg BEGIN; DELETE FROM recipe_versions where patch_major = 8 and patch_minor = 3 and recipe_version = 1; COMMIT;
-- tclsqlite.test -- -- db eval {BEGIN ; COMMIT} BEGIN ; COMMIT
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/insert/05be07af.sql -- file:domain.sql ln:42 expect:true INSERT INTO basictest values ('88', 'haha', 'short', '123.12')
<filename>fz22.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50540 Source Host : localhost:3306 Source Database : fz22 Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2016-11-03 09:11:04 */ SET FOREIGN_KEY...
##广告位列表 #macro($list()) SELECT * FROM banner #end ##清空广告位 #macro($delBanner()) delete FROM banner #end ##查询广告位列表(数据组合在页面处理) #macro($queryBannerList(app,location)) SELECT a.* FROM ( SELECT * FROM banner WHERE 1=1 #if(app) AND app = :app #else AND app is null #end #if(location) AND l...
<gh_stars>10-100 ALTER TABLE `mail` DROP FOREIGN KEY `FK_mail_user`, DROP FOREIGN KEY `FK_mail_user_2`; ALTER TABLE `mail` ADD CONSTRAINT `FK_mail_user` FOREIGN KEY (`from_user`) REFERENCES `user` (`user_id`) ON UPDATE CASCADE ON DELETE RESTRICT, ADD CONSTRAINT `FK_mail_user_2` FOREIGN KEY (`to_user`) REFERENCES `u...
ALTER TABLE etl.organization_quota DROP COLUMN submitted_at; DROP TABLE etl.user_submission; DROP TRIGGER record_last_submitted_organization ON job_state; DROP FUNCTION org_user_last_submitted();
<gh_stars>10-100 -- 206 Distribution of age by visit_concept_id --insert into @results_schema.heracles_results_dist (cohort_definition_id, analysis_id, stratum_1, stratum_2, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) select vo1.cohort_definiti...
<filename>staff.sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 24, 2015 at 01:44 PM -- Server version: 5.5.43-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @...
<reponame>briangormanly/agora -- Agora base database setup -- setup (as root / postgres) create database agora; create user agora with encrypted password '<PASSWORD>'; grant all privileges on database agora to agora; grant connect on database agora to agora; \c agora agora -- create and inserts CREATE TABLE IF NOT E...
-- @testpoint:opengauss关键字chain(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists chain; create group chain with password '<PASSWORD>'; drop group chain; --关键字带双引号-成功 drop group if exists "chain"; create group "chain" with password '<PASSWORD>'; drop group "chain"; --关键字带单引号-合理报错 drop group if exists 'chain'; --关键字带反引号...
<reponame>spartakyro/2019-06-c-sharp-labs<filename>labs/SQL folder/SQL/SQLQuery3.sql /*select * from products where ProductName like '%ch%' select * from Products where ProductName like '[ABC]%' select * from Products where ProductName like '[^ABC]%' select * from Products where ProductName like 'ch_______' /* IN...
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = '{0}') CREATE DATABASE {0}
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 14, 2022 at 06:38 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
--<?php echo date('d/m/Y H:i:s', strtotime($data)); ?> mostrará 09/01/2008 14:01:06. -- create table vendadeservicos(iDchamada int NOT NULL AUTO_INCREMENT, -- filial int not null, UF varchar(2), servico varchar(50), -- numVenda int not NULL, Datavenda date, UltimaAtivacao date, -- Vendedor varchar(30) not null,Cliente...
<filename>ruoyi-plugs/ruoyi-plugs-thirdlogin/src/main/resources/sql/install.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50722 Source Host : 127.0.0.1:3306 Source Database : ry Target Server Type : MYSQL Target Server Version : 50722 File Encoding ...
--为了避免掉坑 以下代码务必按顺序执行 --先把原来的train表改名成schedule create table train ( train_num varchar not null, train_type varchar not null ); create unique index train_num_uindex on train (train_num); insert into train (select distinct s.train_num, s.train_type from schedule s wher...
<gh_stars>0 /*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 12/10/2019 2:59:20 PM */ /*==============================================================*/ /*==============================...
<reponame>MustafaAmish/All-Curses-in-SoftUni SELECT Department, Category, Percentage FROM ( SELECT d.Name AS Department, c.Name AS Category, cast( round( count(*) OVER ( PARTITION BY c.Id) * 100.00 / count(*) ...
<reponame>kspearrin/NPress<gh_stars>1-10 CREATE TABLE [dbo].[User] ( [Id] VARCHAR(30) NOT NULL, [Username] NVARCHAR(20) NOT NULL, [Password] NVARCHAR(100) NOT NULL, [Email] NVARCHAR(100) NULL, [DisplayName] NVARCHAR(20) NOT NULL, [Role] INT NULL, [CreationDateTime] DATETIME2 NOT NULL, [...
/*####################################################################################################### # TYPE: Stored Procedure # # NAME: getwordrecom # # SUMMARY: Retrieves 20 close words for target word # # PARAMETERS: targetWord # # RETURNS: query (json) # # CREAT...
<reponame>postgres-ci/core create or replace function build.stop(_build_id int, _config text, _error text) returns void as $$ begin UPDATE postgres_ci.builds SET config = _config, error = _error, status = ( CA...
<filename>TestDataGenerator/Reference/Tables/Colour.sql CREATE TABLE [Reference].[Colour] ( [ColourSK] INT IDENTITY (1, 1) NOT NULL, [Colour] VARCHAR (50) NULL, PRIMARY KEY CLUSTERED ([ColourSK] ASC) );
<reponame>forgottenlands/ForgottenCore406 DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=18 AND `SourceEntry`=33581; -- item DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry` IN (43315,43371); -- spell DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=43...
INSERT INTO "cvc_org"("path_id", "name", "full_path_id") VALUES (2, 'china', '/1/2'); INSERT INTO "cvc_org"("path_id", "name", "full_path_id") VALUES (3, 'guangdong', '/1/2/3'); INSERT INTO "cvc_org"("path_id", "name", "full_path_id") VALUES (4, 'guangzhou', '/1/2/3/4'); INSERT INTO "cvc_org"("path_id", "name", "full_p...
<filename>docs/sourcecodes/OpenBridge-passos-ui/ob-monitor-web/sql/_init_monitor.sql create view sys_user as select * from paasos.sys_user; create view sys_department as select * from paasos.sys_department; create view sys_func as select * from paasos.sys_func; create view sys_group as select * from paasos.sys_group...
CREATE SEQUENCE "SQ_COLLECTOR_ID" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 NOCACHE NOORDER NOCYCLE
<gh_stars>1000+ ALTER TABLE {$NAMESPACE}_owners.owners_package ADD authorityMode VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT};
CREATE OR REPLACE FUNCTION jobcenter.do_validate_json_schema_type(type text, data jsonb) RETURNS boolean LANGUAGE plpgsql IMMUTABLE SET search_path TO jobcenter, pg_catalog, pg_temp AS $function$ /* Based on https://github.com/gavinwahl/postgres-json-schema. Modified to integrate better with the JobCenter. Copyr...
<gh_stars>0 PRAGMA foreign_keys=off; ALTER TABLE outputs RENAME TO outputs_old; CREATE TABLE outputs ( id INTEGER NOT NULL PRIMARY KEY, commitment BLOB NOT NULL, spending_key BLOB NOT NULL, value INTEGER NOT NULL, ...
INSERT INTO `smartsearches` (`uuid`, `name`, `fromclause`, `valuefield`, `displayfield`, `secondaryfield`, `classfield`, `searchfields`, `filterclause`, `rolefield`, `tabledefid`, `moduleid`, `createdby`, `creationdate`, `modifiedby`, `modifieddate`) VALUES ('smrt:ccc73fa4-6176-fad4-fbb1-5186d0edbdd1', 'Pick Active Use...
<reponame>liangzi4000/grab-share-info EXEC [EST].[Proc_yjbb_Ins] @Code = N'603116',@CutoffDate = N'2017-09-30',@EPS = N'0.64',@EPSDeduct = N'0',@Revenue = N'22.78亿',@RevenueYoy = N'15.36',@RevenueQoq = N'24.76',@Profit = N'2.61亿',@ProfitYoy = N'27.96',@ProfiltQoq = N'0.93',@NAVPerUnit = N'8.1806',@ROE = N'7.98',@CashPe...
CREATE TABLE `test`.`staff_master` ( `id` INT NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(45) NULL, `surname` VARCHAR(45) NULL, `email` VARCHAR(45) NULL, `insert_date` DATETIME NULL, `salary` DOUBLE NULL, PRIMARY KEY (`id`));
#Uses placeholder for values SELECT {model_fields} FROM {table_prefix}{table_name} WHERE {where_clause} ORDER BY `{order_by}`;
CREATE TABLE IF NOT EXISTS article_has_tag ( article TEXT NOT NULL, tag TEXT NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT current_timestamp, PRIMARY KEY (article, tag), CONSTRAINT article_has_tag_article FOREIGN KEY (article) REFERENCES articles (slug) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT article_ha...
<reponame>sudhinbabu/CUSAT-CSE-mini-project -- SELECT CAST( (5 + 1 ) AS unsigned) AS CURRENT_ALLOTMENT_NUMBER FROM allotments; SELECT CAST( (5 + 1) AS unsigned) AS CURRENT_ALLOTMENT_NUMBER;
<filename>bd/bd_copulado/bd_colorpersonalizacoes.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 02-Dez-2019 às 03:51 -- Versão do servidor: 10.1.38-MariaDB -- versão do PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRA...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 23, 2016 at 02:28 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<reponame>lcloss/SQL_MSSQLSRV_DatabaseStats<filename>DatabaseStats.sql SELECT t.name AS TableName , i.name AS IndexName , p.[Rows] , SUM(a.total_pages) AS TotalPages , SUM(a.used_pages) AS UsedPages , SUM(a.data_pages) AS DataPages , ( SUM(a.total_pages) * 8) / 1024 as TotalSpaceMB , ( SUM(a.use...
CREATE TABLE [dbo].[WebHooks] ( [Id] NVARCHAR (450) NOT NULL, [TeamId] NVARCHAR (450) NOT NULL, [IsActive] BIT NOT NULL DEFAULT 1, [Url] NVARCHAR(255) NOT NULL, [ContentType] NVARCHAR(50) NOT NULL, CONSTRAINT [PK_WebHooks] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_WebHooks_Teams_T...
CREATE VIEW vwRepuestos_SeleccionarPorId AS SELECT * FROM Repuestos WHERE CodigoRepuesto = CodigoRepuesto AND Activo = 1
<filename>TRMData/dbo/Tables/Sale.sql<gh_stars>0 CREATE TABLE [dbo].[Sale] ( Id INT NOT NULL PRIMARY KEY identity, CashierId nvarchar(128) not null, [SaleDate] DATETIME2 NOT NULL, [SubTotal] MONEY NOT NULL, [Tax] MONEY NOT NULL, [Total] MONEY NOT NULL, CONSTRAINT [FK_Sale_ToUser] FOREIGN KEY...
<filename>scaffold/assets/sql/test.sql<gh_stars>1-10 select s.name as schema_name, s.schema_id, u.name as schema_owner from sys.schemas s inner join sys.sysusers u on u.uid = s.principal_id;
-- -- -- CREATE OR REPLACE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW _sql_accounts_base AS SELECT user, host, mysql_grantee(user, host) AS grantee, password, password = '' or password rlike '^[?]{41}$' as is_empty_password, password rlike '^[*][0-9a-fA-F]{40}$' or password rlike '^[0-9a...
CREATE PROCEDURE driversInfo() BEGIN /* Write your SQL here. Terminate each statement with a semicolon. */ DROP TABLE IF EXISTS names; CREATE TABLE names ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) ); DROP TABLE IF EXISTS summary; CREATE TABLE summary ( value...
/* Some of constraints are arbitrary, therefore, unnecessary. The order of table creation matters. Any possible coincidences are random. */ -- Дилерские центры CREATE TABLE IF NOT EXISTS Shop ( id SMALLSERIAL PRIMARY KEY CHECK (id > 0), name VARCHAR(50) NOT NULL ); -- Производитель автомобиля CREATE TABLE I...
-- counting the different contexts select concat(k.keyword,'.*'), d.p2key as key, count(*) from flattree d, keywords k where d.path like concat('%.not') and (d.p2key = k.keyword and d.p2key != 'not') group by d.p2key, k.keyword --, d.dewey union select k.keyword, d.pkey as key, count(*) from flattree d, keywords k...
<filename>ddl/empty_database_tables.sql DELETE FROM SESSION_POLICY_STATE; DELETE FROM policy_active_limits_by_cell; DELETE FROM cell_activity_summary; DELETE FROM policy_change_counts;
<filename>actions_admin/Look up All Contacts by Incident ID.sql SELECT legacy_organizations.name, legacy_contacts.first_name, legacy_contacts.last_name, legacy_contacts.email, legacy_contacts.phone FROM legacy_contacts LEFT JOIN legacy_organizations ON legacy_contacts.legacy_organization_id = legacy_organizations.id ...
-- $Id$ -- This script creates a view schema used for database management !set verbose true -- create views in system-owned schema sys_boot.mgmt create or replace schema sys_boot.mgmt; set schema 'sys_boot.mgmt'; set path 'sys_boot.mgmt'; create or replace function repository_properties() returns table(property_name...
<reponame>Bewalticus/gocd -- -- Copyright 2018 ThoughtWorks, Inc. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required...
<reponame>jensim/sourcegraph BEGIN; DROP EXTENSION IF EXISTS pg_stat_statements; COMMIT;
-- phpMyAdmin SQL Dump -- version 4.4.15.7 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 10 2017 г., 17:44 -- Версия сервера: 5.7.13 -- Версия PHP: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
CREATE TABLE `items` ( `ID` int NOT NULL AUTO_INCREMENT, `ItemCode` varchar(25) DEFAULT NULL COMMENT 'Input', `Description` longtext NOT NULL COMMENT 'TextArea', `ItemWeight` varchar(15) DEFAULT NULL COMMENT 'Input', `Department` int NOT NULL DEFAULT '0' COMMENT 'Option|department|ID|name', `Category` int N...
<filename>Exercises/sql/SQLQuery3_Responses.sql -- 1. List all customers (full names, customer ID, and country) who are not in the US select CustomerId, FirstName, LastName, Country from Customer where Country != 'USA'; -- 2. List all customers from brazil select CustomerID, FirstName, LastName, Country from Customer w...
<filename>users.sql SELECT * FROM studcertdb.users; INSERT INTO studcertdb.users (ID, username, password, active) Values (1, 'john' , '<PASSWORD>' , 1);
<filename>hasura/migrations/default/1636598956057_run_sql_migration/up.sql create view designs as SELECT * from artworks where regexp_replace(title, '^.* ', '')::int % 100 = 0;
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "event_details" ( "event_id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "club_id" NUMERIC NOT NULL, "event_name" TEXT NOT NULL, "event_date" TEXT NOT NULL, "event_time" INTEGER, "event_venue" TEXT, "event_type" TEXT, "event_desc" TEXT, "event_poster" BLO...