sql
stringlengths
6
1.05M
create table Book ( id bigint not null, author varchar(255), ebookPublisher_name varchar(255), paperBackPublisher_name varchar(255), title varchar(255), ebookPublisher_country_id bigint, paperBackPublisher_country_id bigint, primary key (id) )
update tb_ordem_servico set no_fiscal_requisitante = '<NAME> Porfírio Júnior' where no_fiscal_requisitante = '<NAME>fírio'; update tb_ordem_servico set no_fiscal_tecnico = 'Carlos Roberto Porfírio Júnior' where no_fiscal_tecnico = 'Carlos Roberto Porfírio';
<filename>src/main/sql/upgrades/1.4-postgresql.sql -- Delete obsolete property from database. Content is cached at application level. delete from extra_prop_entry where name_space = 'http://www.uio.no/vrtx/__vrtx/ns/structured-resources' and name = 'externalScientificInformation';
<reponame>wesleyeff/TestingCenter<filename>sql/TestingCenterDB_2015-04-16.sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 08, 2015 at 06:56 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = ...
<filename>database/test_mit.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : Dim 30 sep. 2018 à 17:00 -- Version du serveur : 5.7.19 -- Version de PHP : 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_...
<filename>db/query.sql -- View All Departments SELECT * FROM department; -- View All Roles SELECT role.id AS id, role.title as title, department.name AS department, role.salary AS salary FROM role JOIN department ON role.department_id = department.id ORDER BY id; -- -- View All Employees SELECT e.id AS id, e.first_na...
DROP TABLE IF EXISTS effective_rate; DROP TABLE IF EXISTS max_income; CREATE TABLE effective_rate ( rate_id INT AUTO_INCREMENT PRIMARY KEY, month_num CHAR(2) NOT NULL, year_num INT NOT NULL, island INT NOT NULL, kwh INT NOT NULL, cost_kwh FLOAT NOT NULL, type INT NOT NULL ); CREATE TABLE m...
/* Test the sqlBookings database - create a temporary table to hold the results - clean up any prior tests by deleting a class called 'TEST' and all associated data if it exists - create a new class called 'TEST' with a couple of resources and associated schedules - resources are called R1 and R2 - schedules are i...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: May 11, 2018 at 01:48 AM -- Server version: 5.6.35 -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<reponame>ZahBenjamin/MySQL_employee_tracker USE employee_db; INSERT INTO department (name) VALUES ("Ethics"), ("Metaphysics"), ("Existentialism"), ("Aesthetics"); INSERT INTO role (title, salary, department_id) VALUES ("Philosopher", 30000, 1), ("Poet", 10000, 1), ("Economist", 80000, 2), ("Hobbyist", 50000, 3), (...
<reponame>nelsonbarr/pruebas_codeigniter -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 1192.168.3.11 -- Tiempo de generación: 26-09-2018 a las 00:38:37 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:...
CREATE TABLE `test` ( `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', `test` text COMMENT '测试', `demo` varchar(11) DEFAULT NULL COMMENT 'DEMO', `isdel` tinyint(11) DEFAULT NULL COMMENT '是否删除', `created_time` datetime DEFAULT NULL COMMENT '创建时间', `updated_time` datetime DEFAULT NULL COMMENT '更...
<filename>scripts/create_table_scripts.sql<gh_stars>0 USE AIRLINE; CREATE TABLE AIRPORT ( Airport_code NVARCHAR(10) PRIMARY KEY, Name NVARCHAR(25) NOT NULL, City NVARCHAR(25) NOT NULL, State NVARCHAR(25) NOT NULL ); CREATE TABLE FLIGHT ( Flight_number NVARCHAR(15) PRIMARY KEY, Airline NVARCHA...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 17, 2016 at 01:44 AM -- 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_SE...
<gh_stars>10-100 SELECT COUNT(id) as "count" FROM transactions WHERE type = ${type} AND type_group = ${typeGroup}
<filename>packages/base32/verify/schemas/base32/schema.sql -- Verify schemas/base32/schema on pg BEGIN; SELECT verify_schema ('base32'); ROLLBACK;
<gh_stars>10-100 -- file:foreign_data.sql ln:286 expect:true CREATE FOREIGN TABLE ft1 ( c1 integer OPTIONS ("param 1" 'val1') NOT NULL, c2 text OPTIONS (param2 'val2', param3 'val3'), c3 date, UNIQUE (c3) ) SERVER s0 OPTIONS (delimiter ',', quote '"', "be quoted" 'value')
-- 2018-04-17T12:18:45.291 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowL...
<gh_stars>0 DROP TABLE IF EXISTS item; DROP TABLE IF EXISTS online_order; CREATE TABLE item ( sku TEXT PRIMARY KEY, name TEXT NOT NULL, price REAL NOT NULL, qty INTEGER NOT NULL ); CREATE TABLE online_order ( id INTEGER PRIMARY KEY AUTOINCREMENT, detail TEXT NOT NULL, item_names TEXT NOT NULL, total_p...
<filename>src/main/resources/data.sql<gh_stars>0 -- Insert rows into table 'brands' INSERT INTO brands ( -- columns to insert data into brand_name, foundation_date ) VALUES ( -- first row: values for the columns in the list above 'Brand 1', '2000-12-20T00:01:00Z' ), ( -- second row: values for the columns in the list...
<reponame>keithmendozasr/k8spractice CREATE SCHEMA IF NOT EXISTS k8spractice; CREATE TABLE IF NOT EXISTS k8spractice.user ( name VARCHAR(256) PRIMARY KEY, password <PASSWORD>A NOT NULL, iv BYTEA NOT NULL, version INTEGER NOT NULL );
ALTER TABLE selfservice_verification_flows DROP COLUMN nid;
CREATE OR REPLACE FUNCTION ldo.fn_despesa_liquidada_estimativa( character varying, character varying, boolean, character varying) RETURNS numeric LANGUAGE plpgsql AS $BODY$ DECLARE stMascRed ALIAS FOR $1; stExercicio ALIAS FOR $2; boRPPS ALIAS FOR $3...
-- we really should rename this table to oskari_user_credentials etc but leave the name as is for now ALTER TABLE IF EXISTS oskari_jaas_users ALTER COLUMN password TYPE text; ALTER TABLE IF EXISTS oskari_jaas_users ALTER COLUMN login TYPE text;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50540 Source Host : localhost:3306 Source Database : eb123 Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2017-07-08 17:09:47 */ SET FOREIGN_KEY_CH...
CREATE TABLE [dbo].[person_contact] ( [id] INT IDENTITY (1, 1) NOT NULL, [contact_type] INT NOT NULL, [person_id] INT NOT NULL, [contact] VARCHAR (250) NOT NULL, [details] VARCHAR (MAX) NULL, [principal] BIT DEFAULT ((0)) NOT NUL...
<reponame>madsportslab/gostats drop table if exists league_followers; drop table if exists team_followers; drop table if exists player_followers;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 06, 2017 at 07:58 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 25, 2019 at 05:51 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 29, 2016 at 11:07 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<filename>test/cases/schedule/schedule.sql -- Adminer 4.2.0 MySQL dump SET NAMES utf8mb4; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `schedule`; CREATE TABLE `schedule` ( `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `class_name` var...
<filename>bd/banco.sql -- dops drop database ebook; create database ebook; use ebook; create table eb_tipo_usr( id_tipo int auto_increment primary key, tipo varchar(30) ); insert into eb_tipo_usr values('','usuario padrão'); insert into eb_tipo_usr values('','usuario gerador de conteudo'); insert into eb_tipo_usr...
-- MySQL dump 10.16 Distrib 10.1.32-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: natstore2_db -- ------------------------------------------------------ -- Server version 10.1.32-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
<reponame>lgcarrier/AFW<gh_stars>1-10 SET DEFINE OFF; ALTER TABLE AFW_21_PLUGN_ITEM_MENU ADD ( CONSTRAINT AFW_21_PLUGN_ITEM_MENU_FK2 FOREIGN KEY (REF_PLUGN_MENU) REFERENCES AFW_21_PLUGN_MENU (SEQNC) ON DELETE CASCADE ENABLE VALIDATE) /
<reponame>MiracleMirror/MiracleShortener -- phpMyAdmin SQL Dump -- version 4.4.15.8 -- https://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Окт 18 2018 г., 17:57 -- Версия сервера: 5.6.31 -- Версия PHP: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
<reponame>Arodev76/L2Advanced CREATE TABLE IF NOT EXISTS `character_l2top_votes` ( `date` bigint(14) NOT NULL DEFAULT '0', `id` int(10) NOT NULL DEFAULT '0', `nick` VARCHAR(255) NOT NULL DEFAULT '''''', `multipler` int(9) NOT NULL DEFAULT '0', `has_reward` int(1) NOT NULL DEFAULT '0', PRIMARY KEY (`date`,`id`,`ni...
<filename>src/test/resources/corrupt8.test_5.sql<gh_stars>100-1000 -- corrupt8.test -- -- db eval {PRAGMA integrity_check} PRAGMA integrity_check
<filename>src/test/resources/sql/select/870462ec.sql -- file:int8.sql ln:150 expect:true select '9223372036854775800'::int8 * '100'::int4
-- file:rowsecurity.sql ln:593 expect:true EXECUTE p1(2)
<reponame>lheinrichde/secpass SELECT title, name, mail, passwordValue, url, backupCode, notes, category FROM passwords WHERE id = $1 AND author = $2;
SELECT w.warehouse_id, w.warehouse_name, l.city, c.country_name, r.region_name FROM warehouses w INNER JOIN locations l ON w.location_id = l.location_id INNER JOIN countries c ON l.country_id = c.country_id INNER JOIN regions r ON c.region_id = r.region_id ORDER BY 1; -- SELECT p.product...
ALTER TABLE Consulta ADD CONSTRAINT FK_CONSULTA_PERFIL FOREIGN KEY (perfil) REFERENCES Perfil(correo); ALTER TABLE Consulta ADD CONSTRAINT FK_CONSULTA_TEMPORAL FOREIGN KEY (contenido) REFERENCES Temporal(nombre); ALTER TABLE Opinion ADD CONSTRAINT FK_OPINION_PERFIL FOREIGN KEY (perfilc) REFERENCES Perfil(correo); A...
create database if not exists ot; create table if not exists ot.v2d_by_chrpos( study_id String, pmid Nullable(String), pub_date Nullable(String), pub_journal Nullable(String), pub_title Nullable(String), pub_author Nullable(String), has_sumstats UInt8, trait_reported String, trait_efos Array(String) d...
<gh_stars>1-10 CREATE TABLE `robloxanalytics`.`event` ( `Id` bigint NOT NULL AUTO_INCREMENT, `ServiceContext` int NOT NULL COMMENT 'The Service Context, usually in the url, like ''www/e.png''', `EventContext` text NOT NULL COMMENT 'The event context, given with the param ''ctx''', `EventName` text NOT NULL COMM...
<reponame>anmolnar/cloudbreak<filename>core/src/main/resources/schema/app/20161212161403_CLOUD-70099_Recoverymode_flag_is_moved_from_cluster_to_hostgroup_level.sql<gh_stars>100-1000 -- // CLOUD-70099-Recoverymode flag is moved from cluster to hostgroup level -- Migration SQL that makes the change goes here. ALTER TABL...
<filename>qmq-dist/sql/init_backup.sql CREATE TABLE IF NOT EXISTS `qmq_dic` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键', `name` varchar(100) NOT NULL default '' comment '字典名称', PRIMARY KEY (id), unique key uniq_idx_name(name) )ENGINE=InnoDB default charset=utf8mb4 comment 'qmq字典表'...
<gh_stars>0 CREATE TABLE public.testemunha ( id serial NOT NULL, pessoa integer NOT NULL, processo integer NOT NULL, PRIMARY KEY (id), CONSTRAINT pessoa_fk FOREIGN KEY (pessoa) REFERENCES public.pessoa_fisica (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION N...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 24, 2021 at 01:25 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_CHARACTER_SET_CLIE...
<gh_stars>0 use Master GO -- Only add if it doesn't exist IF NOT EXISTS (SELECT 1 FROM sys.tables WHERE name = 'AdminQueries') BEGIN -- Build the table CREATE TABLE AdminQueries ( name VARCHAR(50), description VARCHAR(200), code VARCHAR(5000) ) CREATE UNIQUE CLUSTERED INDEX [CI_AdminQueries_Name...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Okt 2021 pada 07.28 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<reponame>Koulinn/aux-backend<filename>src/DB/Tables/Sec_Relations/Candidate_relations/candidate_job_location_type.sql CREATE TABLE IF NOT EXISTS "candidate_job_location_type" ( "candidate_id" uuid REFERENCES users("acc_id") ON DELETE CASCADE, "location_type" VARCHAR(40) REFERENCES location_types("location_type") NOT...
<gh_stars>0 Rem Rem $Header: spctab.sql 16-apr-2002.14:54:46 vbarrier Exp $ Rem Rem spctab.sql Rem Rem Copyright (c) 1999, 2002, Oracle Corporation. All rights reserved. Rem Rem NAME Rem spctab.sql Rem Rem DESCRIPTION Rem SQL*PLUS command file to create tables to hold Rem start and end "snapshot" st...
insert into store_goods_types(name) values ('books'), ('videogames'), ('movies'), ('records'); insert into store_categories(name) values ('suspense'), ('action'), ('drama'), ('pop'), ('rock'), ('punk'), ('comedy'), ('fantasy'), ('classic'); inser...
<filename>src/main/resources/db/migration/V5__expading_text_records.sql<gh_stars>0 ALTER TABLE public.text_record ADD COLUMN title text; ALTER TABLE public.text_record ADD COLUMN extra text;
SELECT ogc_fid AS t_id, ST_Multi(wkb_geometry) AS geometrie, kurventyp, kote FROM public.aww_gsmiso WHERE archive = 0 ;
<reponame>Fhernd/MySQL-Ejercicios<gh_stars>1-10 -- 1. Elimine la tabla "visitas", si existe: DROP TABLE IF EXISTS visitas; -- 2. Créela con la siguiente estructura: CREATE TABLE visitas ( numero INT unsigned auto_increment, nombre VARCHAR(30) NOT NULL, mail VARCHAR(50), pais VARCHAR (20), fecha DATE, PRIMA...
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*Plus as the Oracle...
<gh_stars>0 ALTER TABLE AWARD_TEMPLATE_REPORT_TERMS MODIFY DUE_DATE NULL
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `rain_admin_menu`; CREATE TABLE `rain_admin_menu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `menu_sort` int(11) DEFAULT NULL, `menu_name` varchar(255) DEFAULT NULL, `tabs` varchar(255) DEFAULT NULL, `menu_url` varchar(255) DEFAULT NULL, `menu_icon` varchar(255...
CREATE USER upperio WITH PASSWORD '<PASSWORD>'; CREATE DATABASE upperio_tests ENCODING 'UTF-8' LC_COLLATE='en_US.UTF-8' LC_CTYPE='en_US.UTF-8' TEMPLATE template0; GRANT ALL PRIVILEGES ON DATABASE upperio_tests TO upperio;
<reponame>vijayraavi/peek CREATE VIEW [dbo].[vBillingFromAllSubscriptionTypes] as ( select SubscriptionId as SubscriptionId, 'CSP' as SubscriptionType, Region as Region, ServiceName as Service, ServiceType as ServiceType, ResourceName as ResourceName, UsageDate as UsageDate, ConsumedQuantity as ConsumedQuanti...
<filename>src/main/resources/data.sql insert into customer.customer (customer_id, email_id, first_name, last_name,age,favourite_colour,created_by,creation_date,last_modified_by,last_modified_date,action ) values ('d6f02a17-c676-4b1b-ae39-e3b12f47c400', '<EMAIL>','John', 'Keynes', '29','red','chandra','2021-02-22 11:02:...
<reponame>pyrodie18/Bro-Analysis /*1A. Are there unusual user agent strings? Filter BRO_CONN and BRO_HTTP for connections originating from internal hosts. Show count of times each user agent is used and the number of hosts using that user agent. Sort by number of hosts using the user agent*/ SELECT bro_http.HTTP_USE...
<reponame>KirMerzlikin/Coursey -- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Ноя 08 2014 г., 17:19 -- Версия сервера: 5.5.25 -- Версия PHP: 5.4.34 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<gh_stars>1-10 -- Setup the `bench` schema for running benchmarks -- drop schema if exists bench cascade; create schema if not exists bench; select set_config('search_path', 'bench, public', false); -- clear out existing tables drop table if exists categories, user_stats, user_stats_staging, users cascade; crea...
<filename>service/account/schema/750$account.actorAccount.fetch.sql CREATE OR REPLACE FUNCTION account."actorAccount.fetch"( "@accountId" bigint, "@actorId" varchar(25), "@accountNumber" varchar(25), "@isDefault" boolean, "@isSignatory" boolean ) RETURNS TABLE( -- actorAccount "actorAccountId" bigint, "...
<filename>perun-dispatcher-new/src/test/resources/schema.sql<gh_stars>0 set database sql syntax PGS true; create table users ( id integer not null, first_name varchar(64), last_name varchar(64) not null, middle_name varchar(64), title_before varchar(20), title_after varchar(20), created_at date d...
INSERT INTO `graduates` (`id`, `units_id`, `fam`, `nam`, `sur`, `photo1`, `photo2`, `info`, `rip`, `locals_id`) VALUES (NULL,6,'Бащенко','Александр','Григорьевич','15_01.jpg','','',0,1), (NULL,6,'Гармаш','Александр','Николаевич','15_02.jpg','','',0,1), (NULL,6,'Желудевич','Иван','Иванович','15_03.jpg','','',0,1)...
CREATE TABLE dbo.AccountSummaryView ( [AggregateId] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, [version] INT NOT NULL, [FriendlyName] VARCHAR(MAX) NULL, [Balance] NUMERIC NOT NULL DEFAULT 0.0 )
<reponame>touno-project/Sentinal-System<filename>SentinelSystem/Crawler/SyncGD/GetPNR(view_header).sql SELECT [ref_id], [airline_code], [airline_name], [gds] , isnull(convert(varchar(16),[client_deadline],121),'') as [client_deadline] , isnull(convert(varchar(16),[airline_deadline],121),'') as [airline_deadline] , ...
\echo # Creating user_role type for user create type user_role as enum ( 'webuser', 'admin', 'shadow-banned' ); insert into data.uisetup (name, details) values ('user_role', '{"Admin":"admin","Shadow-Banned":"shadow-banned","Webuser":"webuser"}'::jsonb) ; -- prettified json structure is as follows -- {...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 25, 2020 at 07:58 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>manniwood/mpjw { #{refcursor} = call get_user_by_id(#{getId}) }
create table t1983_hourly( CONSTRAINT __t1983_hourly_check CHECK(valid >= '1983-01-01 00:00+00'::timestamptz and valid < '1984-01-01 00:00+00')) INHERITS (alldata); CREATE INDEX t1983_hourly_idx on t1983_hourly(station, valid); GRANT SELECT on t1983_hourly to nobody,apache; GRANT ALL on t1983_hourly to m...
<reponame>si-mikey/pepino -- MySQL dump 10.13 Distrib 5.6.27, for osx10.11 (x86_64) -- -- Host: localhost Database: pepino -- ------------------------------------------------------ -- Server version 5.6.27 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
/* Difficulty: Medium https://www.hackerrank.com/challenges/weather-observation-station-20/problem A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes (LAT_N) from STATION and round your answer to 4 decimal places. Median https://...
<filename>data/08/11.sql CREATE TABLE table_11 ( codigo VARCHAR(2) NOT NULL PRIMARY KEY, descripcion VARCHAR(11) NOT NULL ); INSERT INTO table_11(codigo, descripcion) VALUES ('01', 'Gravado') , ('02', 'Exonerado') , ('03', 'Inafecto') , ('04', 'Exportación') , ('05', 'Gratuitas');
<filename>install/update_v1-8_7a.sql<gh_stars>10-100 ALTER TABLE projects_issues ADD COLUMN temps_plan smallint(4) DEFAULT 30 AFTER duration; ALTER TABLE projects_issues ADD COLUMN temps_fact smallint(4) DEFAULT 30 AFTER temps_plan; ALTER TABLE projects_issues ADD COLUMN temps_paye smallint(4) DEFAULT 30 AFTER temps_fa...
DELIMITER / INSERT INTO KRIM_ROLE_ID_BS_S VALUES(NULL) / INSERT INTO KRIM_ROLE_T(ACTV_IND,DESC_TXT,KIM_TYP_ID,LAST_UPDT_DT,NMSPC_CD,OBJ_ID,ROLE_ID,ROLE_NM,VER_NBR) VALUES('Y','Sponsor Maintainer',(SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NM = 'UnitHierarchy'),NOW(),'KC-UNT',UUID(),(SELECT (MAX(ID)) FROM KRIM_ROLE_ID_BS_...
<filename>FUNCTIONALITY(Triggers,Prodecures,Funcitons)/MSSQL/Trigger4.sql CREATE TRIGGER Cadinality On Groups AFTER INSERT,UPDATE AS SELECT COUNT (DISTINCT NameOFGroup) FROM Groups BEGIN PRINT 'Error' ROLLBACK TRANSACTION END
CREATE TABLE comments (id SERIAL PRIMARY KEY, id_item CHARACTER VARYING (2000) references items(id), text CHARACTER VARYING (5000));
<filename>docs/tables.sql DROP TABLE IF EXISTS account; CREATE TABLE `account` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'primary key', `created_time` int DEFAULT '0' COMMENT 'created tiem', `updated_time` int DEFAULT '0' COMMENT 'updated tiem', `password` char(32) NOT NULL COMMENT '密码', `mobile` char(11)...
<reponame>nasim-aust/AUST-CSE-4.1-Distributed-Database-Systems-Lab --<NAME> --15.01.04.085 --B2 -- #1 CREATE OR REPLACE FUNCTION CountStudent(stuID student.snum%TYPE) RETURN NUMBER IS counter NUMBER :=0; BEGIN SELECT COUNT(snum) INTO counter FROM student WHERE age = (SELECT age FROM student WHERE snum = stu...
<reponame>hongyuanChrisLi/Archive2015 select deptno , cast( collect( distinct job order by job ) as varchar2_ntt) as distinct_ordered_jobs from emp group by deptno
ALTER TABLE discrete_numerical_var_category DROP FOREIGN KEY FK_ai58j7ktbfoadjqgqm0llm11e; ALTER TABLE discrete_numerical_var_category DROP INDEX FK_ai58j7ktbfoadjqgqm0llm11e; ALTER TABLE discrete_numerical_var_category DROP PRIMARY KEY; ALTER TABLE discrete_numerical_var_category ADD upper_bound_string varchar(255); U...
<gh_stars>0 .mode ascii select distinct printf("<p><a href='%s'>%s (%s)</a>", url, substr(content, 0, 80), substr(note, 0, 30)) from like where timestamp > datetime('now','-72 hours') order by timestamp desc;
<filename>postgresql-dev/sql/hotline.sql create table hotline ( hotline_id integer generated by default as identity primary key, message text not null, sender varchar(255) not null check (char_length(sender) > 0), recipient varchar(255) not null check (char_length(recipient) > 0), posted_at timestamp not null );
<reponame>bryanemanuel/Codetrotters SELECT a.artist, a.name, s.title, s.duration FROM albums `a` INNER JOIN albums_songs `as` ON as.album_id = a.id INNER JOIN songs `s` ON as.song_id = s.id
alter table joukkue add column joukkue_kuvaus text;
<filename>code_sample/lc_1378.sql<gh_stars>0 # Solution 1 (self, correct) SELECT EUNI.unique_id, E.name FROM Employee E LEFT JOIN EmployeeUNI EUNI ON E.id = EUNI.ID
SELECT c1.name AS country, region, l.name AS language, basic_unit, frac_unit FROM countries AS c1 FULL JOIN languages AS l USING (code) FULL JOIN currencies AS c2 USING (code) WHERE region LIKE 'M%esia';
CREATE TYPE TVarType AS ENUM ('kernel', 'context', 'object'); CREATE TYPE Id AS (Id uuid); CREATE TYPE Cardinal AS (Cardinal NUMERIC(14)); CREATE TYPE Amount AS (Amount NUMERIC(15,5)); CREATE TYPE Const AS (Const NUMERIC(5)); CREATE TYPE Symbol AS (Symbol VARCHAR(1)); CREATE TYPE Code AS (Code VARCHAR(30)); CREATE TY...
<reponame>MonkyDev/api-sdgp ALTER TABLE `antecedentes` CHANGE `updated_at` `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE `autenticaciones` CHANGE `updated_at` `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE `autoriza...
-- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Tempo de geração: 20/09/2017 às 17:31 -- Versão do servidor: 10.1.26-MariaDB -- Versão do PHP: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
CREATE TABLE IF NOT EXISTS public.drives_external ( id UUID NOT NULL, drive_type TEXT NOT NULL, alias TEXT NOT NULL, key_1 TEXT, key_2 TEXT, key_3 TEXT, key_4 TEXT, key_5 TEXT, owner_id UUID NOT NULL, external_id TEXT, region_n...
SELECT id, userName, positionX, positionY, fontSize, entryTime FROM sub ORDER BY entryTime DESC
<reponame>omunroe-com/gerrittattic<gh_stars>0 -- Upgrade: schema_version 13 to 14 (MySQL) -- ALTER TABLE projects ADD use_signed_off_by CHAR(1); UPDATE projects SET use_signed_off_by = 'N'; ALTER TABLE projects MODIFY use_signed_off_by CHAR(1) DEFAULT 'N' NOT NULL; UPDATE schema_version SET version_nbr = 14;
<filename>src/main/resources/liquibase/harness/change/expectedSql/mysql/addNotNullConstraintBitBoolean.sql CREATE TABLE lbcat.test_table (id INT NULL, bit_col BIT(1) NULL, boolean_col BIT(1) NULL) INSERT INTO lbcat.test_table (id) VALUES (1) UPDATE lbcat.test_table SET bit_col = 1 WHERE bit_col IS NULL ALTER TABLE lbca...
<gh_stars>0 CREATE TABLE IF NOT EXISTS SMRating ( `pageid` varchar(32) DEFAULT NULL, `instanceid` integer DEFAULT NULL, `maxvalue` integer DEFAULT NULL, `count` integer DEFAULT NULL, `value` float DEFAULT NULL ) ENGINE = InnoDB CHARACTER SET latin1 COLLATE latin1_swedis...
<reponame>mcampbell/bandwidth-graphs -- 2016.05.26-00.24.44,4,0,96,up,10.13,e6510 create table bandwidth ( test_time TEXT, day_of_week INTEGER, hour_of_day INTEGER, hour_of_week INTEGER, metric_type TEXT, metric_value REAL, context TEXT);