sql
stringlengths
6
1.05M
<reponame>letsface/postgresql-http-server CREATE EXTENSION postgis; DROP SCHEMA IF EXISTS testschema CASCADE; CREATE SCHEMA testschema; CREATE TABLE testschema.testtable (id SERIAL PRIMARY KEY, name varchar); SELECT AddGeometryColumn('testschema', 'testtable', 'geom', -1, 'POINT', 2);
<gh_stars>0 -- This file generated by generate.py. -- <yaml> -- DependsOn: {} -- </yaml> SELECT CAST(vs."_id" AS VARCHAR) AS "_id", vs."suites" AS "suites", vs."test" AS "test" -- <COMMON_ETL_FIELDS> , LOCALTIMESTAMP AS "_extract_timestamp" -- <...
<gh_stars>0 drop table tain.reuters; CREATE TABLE `tain`.`reuters` ( `id` INT NOT NULL AUTO_INCREMENT COMMENT 'id on msg' , `language` VARCHAR(8) NOT NULL COMMENT 'language on m...
<gh_stars>1-10 SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE FUNCTION [dbo].[fn_SHR_VOL_Link_Skill]( @SK_ID [int], @SkillName [varchar](200), @HTTPVals [varchar](500), @PathToStart [varchar](50) ) RETURNS [varchar](1000) WITH EXECUTE AS CALLER AS BEGIN RETURN '<A HREF="' + @PathToStart + 'volunteer/res...
-- select all item SELECT item.id, item.name, (SELECT "user".name FROM "user" WHERE "user".id = item.user_id), (SELECT state.name FROM state WHERE state.id = item.state_id), (SELECT category.name FROM category WHERE category.id = item.category_id) FROM item ; -- select all comments where item = 'selling laptop...
<filename>TaskParallelFoundation/Databases/SqlServer/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/TPW_SERVICE_RECENT_WK_LOG.proc.sql CREATE PROCEDURE dbo.TPW_SERVICE_RECENT_WK_LOG @inLast_Time DATETIME AS SELECT L.LOG_TIME, L.REFER_ID, O.STATE_NAME AS OLD_STATE, E.EVENT_NAME AS E...
<reponame>dfagnan/dbt_mailchimp_source {% macro get_list_columns() %} {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "beamer_address", "datatype": dbt_utils.type_string()}, {"name": "contact_address...
<gh_stars>10-100 CREATE PROCEDURE SP779(OUT MYCOUNT INTEGER) SPECIFIC SP779_46171 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE24;SELECT COUNT(*)INTO MYCOUNT FROM TABLE408;SELECT COUNT(*)INTO MYCOUNT FROM TABLE292;SELECT COUNT(*)I...
-- Forum alter table o_message add modification_date date;
<reponame>connormcd/misc-scripts ------------------------------------------------------------------------------- -- -- PLEASE NOTE -- -- No warranty, no liability, no support. -- -- This script is 100% at your own risk to use. -- ------------------------------------------------------------------------------- undefine ...
<filename>sql/_30_banana_pie_qa/issue_20567_keylimit/cases/func_index_01_delete.sql drop table if exists t; create table t(col1 int,col2 varchar(20),col3 date); insert into t values(1,'book1','2007-12-24'); insert into t values(2,'book2','2008-12-24'); insert into t values(3,'book3','2009-12-24'); insert into t values(...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/Collation_Catalog/Opengauss_Function_Keyword_Collation_Catalog_Case0026.sql -- @testpoint:opengauss关键字collation_catalog(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists collation_catalog; create schema collation_catalog; drop schema collation_catal...
SET foreign_key_checks = 0; DROP TABLE admin; CREATE TABLE `admin` ( `admin_id` int(5) NOT NULL AUTO_INCREMENT, `full_name` varchar(100) NOT NULL, `username` varchar(100) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(500) NOT NULL, `role` enum('1','2') NOT NULL DEFAULT '1', `updated_at` ...
<reponame>ministryofjustice/csr-api Insert into ST_STAFF (ST_STAFF_ID, IS_DELETED) values (1147, 0); Insert into ST_STAFF (ST_STAFF_ID, IS_DELETED) values (1148, 0); Insert into ST_STAFF (ST_STAFF_ID, IS_DELETED) values (1149, 0); Insert into ST_STAFF (ST_STAFF_ID, IS_DELETED) values (1150, 0); Insert into ST_STAFF (S...
<reponame>anqh/anqh<filename>modules/galleries/install/postgresql/galleries_images.sql CREATE TABLE "public"."galleries_images" ( "id" SERIAL, "gallery_id" INTEGER NOT NULL, "image_id" INTEGER NOT NULL, CONSTRAINT "galleries_images_pkey" PRIMARY KEY("id"), CONSTRAINT "galleries_images_gallery_id" FOREIGN KEY ...
<reponame>Andungs/app-desa -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 07 Mar 2020 pada 10.15 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
<reponame>DanielBankov/SoftUni SELECT e.EmployeeID, e.FirstName, e.ManagerID, m.FirstName FROM Employees AS e JOIN Employees AS m ON m.EmployeeID = e.ManagerID WHERE e.ManagerID IN (3, 7) ORDER BY EmployeeID
<reponame>EL-BID/Covid-19-Traffic-Impact-Dashboard insert into {{ athena_database }}.{{ slug }}_{{ raw_table }}_{{ name }} select t.*, g.id_parent from ( select * from {{ athena_database }}.{{ slug }}_{{ from_table }} where region_slug = '{{ region_slug }}' ) t join ( select * f...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2017 at 04:32 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
<filename>src/sql/staging.sql CREATE DATABASE IF NOT EXISTS sqli; USE sqli; CREATE TABLE IF NOT EXISTS users ( user_id SMALLINT NOT NULL, username VARCHAR(20), nom VARCHAR(20), prenom VARCHAR(20), email VARCHAR(20), PRIMARY KEY (user_id) ) ENGINE=INNODB; INSERT INTO sqli.users (user_id, usernam...
<gh_stars>10-100 CREATE PROCEDURE [dbo].[MarkRepositoryIssuesAsFullyImported] @RepositoryId BIGINT AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON UPDATE Repositories SET IssuesFullyImported = 1 WHERE Id = @RepositoryId AND Issues...
<filename>db/skn-seed.sql -- -- PostgreSQL database Seed -- -- Dumped from database version 9.6.8 -- Dumped by pg_dump version 10.1 -- Started on 2018-10-14 22:17:06 EDT SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming...
/*Primeira linha em branco - Spring não tava adicionado os valores*/ INSERT INTO clientes (nome, genero, endereco, cep, profissao, email) VALUES ('<NAME> <NAME>', 'feminino', 'rua dos bobos', '123321-111', 'escritora', '<EMAIL>'); INSERT INTO clientes (nome, genero, endereco, cep, profissao, email) VALUES ('Rex lopes'...
-- IFS-6186 Template form input type -- These form input types are no longer needed. DELETE FROM form_input_type WHERE id in (1, 3, 18); -- Appendix shouldn't exist for your organisation DELETE aft FROM appendix_file_types aft INNER JOIN form_input fi ON fi.id = aft.form_input_id INNER JOIN question q...
-- Description: This file contains all cluster stored procedures for the starexec database -- The procedures are stored by which table they're related to and roughly alphabetic order. Please try to keep this organized! -- Adds a worker node to the database and ignores duplicates -- Author: <NAME> DROP PROCEDURE I...
-- GET YEAR VALUES CREATE OR REPLACE FUNCTION retail454.year(input DATE) AS ( CASE WHEN input < DATE('2014-02-02') THEN 2013 WHEN input < DATE('2015-02-01') THEN 2014 WHEN input < DATE('2016-01-31') THEN 2015 WHEN input < DATE('2017-01-29') THEN 2016 WHEN input < DATE('2018...
-- walhook.test -- -- execsql { PRAGMA synchronous = NORMAL } PRAGMA synchronous = NORMAL
<gh_stars>100-1000 -- vtab1.test -- -- execsql { -- SELECT * FROM t1 WHERE b = 5; -- } SELECT * FROM t1 WHERE b = 5;
<gh_stars>100-1000 -- original: tkt-7bbfb7d442.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE t1(a, b); INSERT INTO t1 VALUES(1, 'one'); INSERT INTO t1 VALUES(2, 'two'); INSERT INTO t1 VALUES(3, 'three'); CREATE TABLE t2(c, d); INSERT INTO t2 VALUES('one', 'I'); INSERT IN...
<gh_stars>0 -- -- Ad Scheduler extra -- \connect - jcms INSERT INTO updatelog (name,value) VALUES ('db_version','20121206'); \i sponsors.sql \i ads.sql \i adplacement.sql
----------------------------------------------------------- -- Pinning VM to multiple Hosts ----------------------------------------------------------- -- create a mapping table CREATE TABLE vm_host_pinning_map ( vm_id UUID NOT NULL, vds_id UUID NOT NULL, FOREIGN KEY (vm_id) REFERENCES vm_static(vm_gu...
-- use role accountadmin; use schema snowflake.account_usage; -- select usage_date, average_stage_bytes from stage_storage_usage_history where usage_date >= date_trunc(day, current_date); select * from "SNOWFLAKE"."ACCOUNT_USAGE"."LOGIN_HISTORY" WHERE event_timestamp > dateadd(minute, -121, getdate()) AND event_timest...
<reponame>matriculated/gacfPy3 USE $(LoanTypeService_dbname) GO CREATE OR ALTER PROCEDURE [dbo].[prcAddMarketSegment] @MarketSegmentName varchar(100) , @MarketSegmentCode varchar(10) , @LenderCode varchar(8) , @RequireResponsibleBorrowing bit , @ReferralEligible bit , @PersonalLoan bit , @EmployerCo...
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint:开启事务提取数据,参数为forward count(count<=0),从当前关联位置开始,抓取前面的abs(count)行; --前置条件 drop table if exists cur_test_84; create table cur_test_84(c_id int,c_num int,c_name varchar(10),c_city varchar(10),c_add varchar(20)); insert into cur_test_84 values(1,18,'Allen','Beijing','...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 30, 2021 at 10:49 PM -- Server version: 5.7.23 -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `teknasyon` -- -- -------------------------...
<gh_stars>0 \copy products FROM 'C:\Users\Kristine\spicednotes\northwind_data_clean-master\data\products.csv' DELIMITER ',' CSV HEADER; CREATE TABLE products (productID,productName,supplierID,categoryID,quantityPerUnit,unitPrice,unitsInStock,unitsOnOrder,reorderLevel,discontinued); \COPY products (productID,produ...
<gh_stars>0 -- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$ CREATE PROCEDURE `ge...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 21, 2021 at 09:33 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 04, 2022 at 03:02 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<reponame>hawkwithwind/chat-bot-hub<filename>migrate/0004_modifyBotUnique.up.sql<gh_stars>1-10 ALTER TABLE `bots` DROP INDEX `login_index`; ALTER TABLE `bots` DROP INDEX `accountid_2`; CREATE UNIQUE INDEX `login_unique` ON `bots`(`login`);
<gh_stars>10-100 prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*P...
<reponame>Nhlest/pajbot2-discord<gh_stars>1-10 CREATE TABLE discord_queue ( id SERIAL PRIMARY KEY, action TEXT NOT NULL, timepoint TIMESTAMP with time zone NOT NULL ); comment on column discord_queue.action is 'json blob describing the action'; comment on column discord_queue.timepoint is 'when to perform the actio...
-- file:xml.sql ln:13 expect:true SELECT xmlcomment('test')
<filename>@api/db/migrations/committed/000216.sql<gh_stars>0 --! Previous: sha1:0def60c469c3454c91d5946674fd29f947f8b84d --! Hash: sha1:380d0bd99b9089ab0336d8892b2d1cf4e84434e7 --! split: 1-current.sql -- enter migration here create policy delete_own on app_public.friends for delete using (exists(select 1 from app_pu...
<reponame>ShrSinha/hackerrank-practice /* Problem : Write a query to find the node type of Binary Tree ordered by the value of the node. Sample Input : N P 1 2 3 2 5 NULL Sample Output : 1 Leaf 2 Inner 3 Leaf 5 Root 6 Leaf */ select node.n ,case when node.p is null then 'Root' when node.n = parent.p ...
alter table sys_user add first_name varchar(40); alter table sys_user add last_name varchar(40); alter table sys_user add gender varchar(10); alter table sys_user add birthday datetime;
<gh_stars>0 CREATE SCHEMA IF NOT EXISTS solardatum; CREATE SCHEMA IF NOT EXISTS solaragg; CREATE TABLE solardatum.da_datum ( ts timestamp with time zone NOT NULL, node_id bigint NOT NULL, source_id text NOT NULL, posted timestamp with time zone NOT NULL, jdata_i jsonb, jdata_a jsonb, jdata_s jsonb, jd...
USE dashboards; DROP PROCEDURE IF EXISTS splitQueryExpression; DELIMITER // CREATE PROCEDURE splitQueryExpression( IN p_query_id INT, IN p_ruleTab VARCHAR(64), IN p_ruleDetailTab VARCHAR(64) ) BEGIN DECLARE done INT; DECLARE l_id INT; DECLARE l_query_id INT; ...
CREATE TABLE `city` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '城市编号', `province_id` int(10) unsigned NOT NULL COMMENT '省份编号', `city_name` varchar(25) DEFAULT NULL COMMENT '城市名称', `description` varchar(25) DEFAULT NULL COMMENT '描述', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHAR...
<reponame>rubera/superfly drop procedure if exists ui_edit_role_properties; delimiter $$ create procedure ui_edit_role_properties(i_role_id int(10), i_role_name varchar(32), i_principal_name varchar(32), ...
<filename>sql/derived_tables/po_acq_unit_ids.sql DROP TABLE IF EXISTS po_acq_unit_ids; -- These fields in adjustments can be locally defined CREATE TABLE po_acq_unit_ids AS WITH po_acq_unit AS ( SELECT id AS po_id, json_extract_path_text(po_purchase_orders.data, 'poNumber') AS po_number, acq_unit_...
-- -- See also -- -> mypid.sql -- -> who-am-i.sql -- select sys_context('USERENV','SID') from dual;
<gh_stars>1-10 -- Revert ggircs-portal:policies/reporting_year_policies from pg begin; drop policy ciip_administrator_select_reporting_year on ggircs_portal.reporting_year; drop policy ciip_administrator_insert_reporting_year on ggircs_portal.reporting_year; drop policy ciip_administrator_update_reporting_year on ggi...
CREATE TABLE `users_roles` ( `user_id` bigint(20) unsigned NOT NULL COMMENT 'ユーザーID', `role_id` bigint(20) unsigned NOT NULL COMMENT 'ロールID', `update_user` bigint(20) unsigned NOT NULL COMMENT '更新者', `update_date` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT '更新日時', PRIM...
DROP PIPE IF EXISTS SANDBOX_POC1.EMPLOYEES.Employee_pipe;
with ips as (select distinct sc.listener_device_fk ,sc.client_device_fk ,ld.name as "Listening Device Name" ,ld.type as "Listening Device Type" ,ld.serial_no as "Listening Serial Number" ,ld.uuid as...
--+ holdcas on; set names utf8; create class t1( id int, col1 string collate binary, col2 char(10) collate utf8_tr_cs, col3 varchar(10) collate utf8_tr_cs ); INSERT INTO t1 VALUES (1,'Çç_Ğğ_İı','Çç_Ğğ_İı','Çç_Ğğ_İı'); INSERT INTO t1 VALUES (2,'Öö_Şş_Üü',null,'Öö_Şş_Üü'); INSERT INTO t1 VALUES (3,'Öö_Şş_Üü阿啊','Öö_Ş...
<reponame>delixfe/CovidCertificate-Management-Service<gh_stars>0 ALTER TABLE kpi ADD COLUMN IF NOT EXISTS system_source VARCHAR(3); ALTER TABLE kpi ADD COLUMN IF NOT EXISTS api_gateway_id VARCHAR(36);
-- genres INSERT INTO genre (id, name, parent_id) VALUES ('08', 'Artificial Intelligence', null); INSERT INTO genre (id, name, parent_id) VALUES ('29', 'Fantasy', null); INSERT INTO genre (id, name, parent_id) VALUES ('31', 'Fiction', null); INSERT INTO genre (id, name, parent_id) VALUES ('55', 'Reference', null); INSE...
INSERT INTO `user`(`id`, `name`, `pass`, `age`) VALUES (12, '5', '26', 54); INSERT INTO `user`(`id`, `name`, `pass`, `age`) VALUES (2, 'user2', '34', 12); INSERT INTO `user`(`id`, `name`, `pass`, `age`) VALUES (3, 'user3', 'asd', 34); INSERT INTO `user`(`id`, `name`, `pass`, `age`) VALUES (4, 'user4', '8080', 56); INSE...
-- phpMyAdmin SQL Dump -- version 4.7.1 -- https://www.phpmyadmin.net/ -- -- Host: sql12.freemysqlhosting.net -- Generation Time: Nov 28, 2020 at 10:44 AM -- Server version: 5.5.62-0ubuntu0.14.04.1 -- PHP Version: 7.0.33-0ubuntu0.16.04.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SE...
ALTER TABLE reservation ADD duree INT NOT NULL, CHANGE datereservation date DATETIME NOT NULL, CHANGE etatreservation etat VARCHAR(255) NOT NULL; CREATE TABLE preferences (id INT AUTO_INCREMENT NOT NULL, $nombreResaMaxParSemaine INT NOT NULL, $nombreResaMaxParJour INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET...
<reponame>jansforte/oracle<gh_stars>0 -- -- --AUTHOR: <NAME> --DATE: 06/03/2021 -- -- ---------------------------------------------------------- -- -- Dar privilegios a empleado_airbnb para logearse en Airbnb -- GRANT CREATE SESSION TO empleado_airbnb; ------------------------------------------------------------- ...
-- MySQL dump 10.13 Distrib 5.7.10, for osx10.9 (x86_64) -- -- Host: localhost Database: library -- ------------------------------------------------------ -- Server version 5.7.10 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
<filename>CSharp DB Fundamentals MSSQL/DatabasesMSSQLServerExam03January2018/DatabasesMSSQLServerExam03January2018/08.AvailableVehicles.sql USE RentACar SELECT m.Model, m.Seats, v.Mileage FROM Vehicles AS v JOIN Models AS m ON m.Id = v.ModelId WHERE v.Id NOT IN(SELECT VehicleId FROM Orders WHERE ReturnDate IS NU...
DROP TABLE activity; CREATE TABLE activity ( -- day transaction took place. day DATE, -- free form description. By default, it's what the bank statement has as the description. description TEXT, -- the amount the activity entry is. -- Read main README for more about what negative or positive v...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Des 2018 pada 19.19 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<filename>src/main/resources/sql/blog2.sql /* Navicat Premium Data Transfer Source Server : 127.0.0.1-3306 Source Server Type : MySQL Source Server Version : 80025 Source Host : localhost:3306 Source Schema : blog2 Target Server Type : MySQL Target Server Version : 80025 File ...
DELETE from eg_roleaction where roleid in (select id from eg_role where name in ('CSC Operator')) and actionid in (select id FROM eg_action WHERE NAME = 'CollectTax-Form' and CONTEXTROOT='ptis'); INSERT INTO eg_roleaction (actionid,roleid) VALUES ((SELECT id FROM eg_action WHERE name='CollectTax-Form' and CONTEXTROOT=...
<filename>scenery/sql/scenery.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2018-02-22 12:38:32 -- 服务器版本: 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=@@CHAR...
INSERT INTO `admins`(`id`, `name`, `username`, `mobile`, `password`, `created_at`, `updated_at`) VALUES (UUID(), 'مصطفی غلامی', 'mostafa', '09365895522', '$2y$10$Ae1qyE...
<reponame>wisekh6/RTscars<gh_stars>1-10 /* --- Date: April 21, 2020 Author: <NAME> --- Use Taylor aneuploidy metric to quantify chromosome missegregation events - Determine for each chromosome (autosomes only): + when both arms are zero (euploid) or both arms are null (indeterminate): euploid + when either arm is not...
-- file:privileges.sql ln:401 expect:true SELECT * FROM atest6
-- file:dbsize.sql ln:43 expect:true SELECT pg_size_bytes('kb')
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/select/c4ad49b1.sql -- file:rowtypes.sql ln:38 expect:true select f1, q.c1 from quadtable
-- View zum Austausch der BRWs BEGIN; SET search_path = bodenrichtwerte, public; SET default_with_oids = true; CREATE OR REPLACE VIEW bw_boris_view AS SELECT (bw.gutachterausschuss || '_'::text) || lpad(bw.bodenrichtwertnummer::character(13)::text, 7, '0'::text) AS brw_id, k.bezeichnung AS kreisname, k.sc...
<reponame>ooknight/ebean<filename>ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.2__dropsFor_1.1.sql -- Migrationscripts for ebean unittest -- apply changes drop trigger migtest_e_history2_history_upd; drop trigger migtest_e_history2_history_del; drop view migtest_e_history2_with_history; -- apply alte...
CREATE UNIQUE INDEX IF NOT EXISTS username_idx ON users (username); CREATE UNIQUE INDEX IF NOT EXISTS forgot_password_token_idx ON forgot_password_tokens (token); CREATE UNIQUE INDEX IF NOT EXISTS confirm_account_token_idx ON confirm_account_tokens (token); CREATE UNIQUE INDEX IF NOT EXISTS short_url_idx ON links (s...
<filename>rest-fights/deploy/db-init/initialize-tables.sql<gh_stars>1-10 \c fights_database superfight; DROP TABLE IF EXISTS Fight; DROP SEQUENCE IF EXISTS hibernate_sequence; CREATE SEQUENCE hibernate_sequence START 1 INCREMENT 1; CREATE TABLE Fight ( id int8 NOT NULL, fightDate TIMESTAMP NOT NULL, loserLe...
<reponame>admariner/cc-index-table -- "word" count in host names (parts separated by '.') -- - only for hosts in the French (.fr) top-level domain -- - only output words which occur at least 100 times -- - add a histogram in which positions parts occur -- (1 :- last position, 2 :- second last position) -- ...
insert into public.user(id,password, username, created_at, updated_at) select id,password,username,date_joined, date_joined from auth_user; --insert into public.user(id,password,last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) select id,password,last_login, is_superus...
<filename>rdbc.sql -- phpMyAdmin SQL Dump -- version 4.5.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 07, 2016 at 05:57 AM -- Server version: 5.7.9 -- PHP Version: 5.5.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
CREATE TABLE ren_cms_FileManagementProfiles ( id INT IDENTITY(1,1) NOT NULL , ProfileName VARCHAR (50) NOT NULL )
<filename>bamazon.sql<gh_stars>0 DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT AUTO_INCREMENT NOT NULL, product_name VARCHAR(45) NOT NULL, department_name VARCHAR(45) NOT NULL, price DECIMAL (10,2) NOT NULL, stock_quantity INT (10) NOT N...
-- create database DROP DATABASE IF EXISTS `Farm`; CREATE DATABASE IF NOT EXISTS `Farm`; USE `Farm`; -- create table CREATE TABLE `Customers`( `FirstName` varchar(20) NULL, -- variable character type up to 20 characters, want to limit this `LastName` varchar(20) NULL, `Email` varchar(20) NULL ); ...
-- Customer INSERT INTO `Customer` (ID,first_name,last_name, type) values (1,'John','Smith', 'A'); INSERT INTO `Customer` (ID,first_name,last_name, type) values (2,'Jane','Smith', 'O'); INSERT INTO `Customer` (ID,first_name,last_name, type) values (3,'Banana','Muffin', 'Z'); INSERT INTO `Customer` (ID,first_...
DROP DATABASE IF EXISTS banque; CREATE DATABASE banque CHARACTER SET 'utf8'; USE banque; CREATE TABLE User( id INT NOT NULL AUTO_INCREMENT, firstname VARCHAR(40) NOT NULL, lastname VARCHAR(40) NOT NULL, user_mail VARCHAR(40) NOT NULL, user_pwd VARCHAR(40) NOT NULL, login_creation DATE NOT NUL...
CREATE TABLE `book` ( `book_id` int(11) NOT NULL, `title` varchar(128) NOT NULL, `author` varchar(45) NOT NULL, `price` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `book` (`book_id`, `title`, `author`, `price`) VALUES (1, 'Game Of Thrones', '<NAME>', 2825), (2, '<NAME> nove', '<NAME>', 26...
show databases; use course; show tables; select *from students; select sid,age,gpa from students; select age,sid,gpa from students; select sid from students; select s.age,s.sid,s.gpa from students s; update students set age=23 where sid="187R122"; update students s set s.age=24 where s.sid="187R123"; update students s ...
# Affichage de la table ca_athletes # ------------------------------------------------------------ CREATE TABLE `ca_athletes` ( `id_a` int(11) unsigned NOT NULL AUTO_INCREMENT, `nom_a` varchar(100) NOT NULL, `prenom_a` varchar(100) NOT NULL, `date_a` date NOT NULL, `sexe_a` varchar(2) NOT NULL, PRIMARY KE...
create or replace package yatzy_plugin authid definer as -------------------------------------------------------------------------------- function render_dice ( p_item in apex_plugin.t_page_item, p_plugin in apex_plugin.t_plugin, p_value in varchar2, p_is_readonly ...
-- CreateTable CREATE TABLE "Post" ( "authorId" INTEGER, "content" TEXT, "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "published" BOOLEAN NOT NULL DEFAULT false, "title" TEXT NOT NULL );
<reponame>MindFlavor/SQLBeam<filename>SQLBeam.Core/Database/DWH/CheckTableName.sql<gh_stars>1-10 SELECT [name] FROM sys.tables WHERE [name] = @name AND [type] = 'U'
-- 2017-04-13T16:31:35.602 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='N',Updated=TO_TIMESTAMP('2017-04-13 16:31:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542483 ; -- 2017-04-13T16:31:40.969 -- I forgot to set the DICTIONARY_ID_COMMENT...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-01-2017 a las 02:01:25 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
select NombreProd NombreProd, sum(CantidadProductos) CantidadProductos, sum(PrecioProd) PrecioProd from detalle, producto where detalle.CodigoProd = producto.CodigoProd group by detalle.CodigoProd order by CantidadProductos desc ; select CodigoProd, sum(CantidadProductos) CantidadProductos, sum(PrecioProd) ...
{% test recency(model, field, datepart, interval) %} {{ return( adapter.dispatch("test_recency", "dbt_utils")(model, field, datepart, interval) ) }} {% endtest %} {% macro default__test_recency(model, field, datepart, interval) %} {% set threshold = dbt_utils.dateadd( datepart, interval * -1, dbt_...
<gh_stars>1-10 /*!40101 SET character_set_client = utf8 */; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicod...
 CREATE PROCEDURE [sp_sel_Ledger] AS SELECT [LedgerID], [Name], [LedgerTypeID] FROM [dbo].[Ledger]
<filename>posda/posdatools/queries/sql/UpdateQueryRow.sql -- Name: UpdateQueryRow -- Schema: posda_files -- Columns: [] -- Args: ['query', 'args', 'columns', 'tags', 'schema', 'description', 'name'] -- Tags: ['NotInteractive', 'PatientStatus', 'Update', 'queries'] -- Description: Update a row in the queries table upd...