sql
stringlengths
6
1.05M
select count(*) from nulls2 where string_7 glob '*123' 0
<filename>scholarship.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 12, 2019 at 08:36 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time...
<reponame>delucca-workspaces/data<filename>warehouse/models/data_marts/okr/staging/stg_analytics__key_result_progress_record.sql with src_analytics__key_result_progress_record as ( select * from {{ source('conformed', 'analytics__key_result_progress_record') }} ), final as ( select id::uuid, ...
CREATE TABLE nifipeople ( loginuuid STRING , gender STRING ,nametitle STRING ,namefirst STRING ,namelast STRING ,locationstreetnumber INT ,locationstreetname STRING ...
select name, type from gcp.gcp_dns_record_set where name = 'dummy-{{ resourceName }}'
<reponame>nenadnoveljic/tpt-oracle<gh_stars>100-1000 -- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. alter session set events '&1 trace name context off'; alter session set tracefile_identifier=...
<gh_stars>1-10 update user_account set user_type = 'ldap'; update user_account set user_type = 'system' where eppn = 'creator'; update user_account set user_type = 'system' where eppn = 'system';
<gh_stars>0 select distinct TAXON_I D from NCBI_SEQS_TAXONS order by taxon_id select count(*) from TAXONS select * from taxons order by id select name from prok_groups where GROUP_CRITER_ID = 0 order by name
/* A wrapper around pg_stat_activity to enable session, blocking lock, etc monitoring by the non-superuser pgwatch2 role. Assumes a role has been created named pgwatch2 */ CREATE OR REPLACE FUNCTION public.get_stat_activity() RETURNS SETOF pg_stat_activity AS $$ select * from pg_stat_activity where datname = curren...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 100314 Source Host : localhost:3306 Source Schema : travel_db Target Server Type : MySQL Target Server Version : 100314 File Encoding : 65001 Dat...
<reponame>Scout2012/Hospital-Patient-System DROP SCHEMA IF EXISTS DocOffice; CREATE SCHEMA IF NOT EXISTS DocOffice; SET FOREIGN_KEY_CHECKS=0; -- Definition of table 'DEPARTMENT' CREATE TABLE IF NOT EXISTS DocOffice.DEPARTMENT ( departmentId INT NOT NULL, name VARCHAR(50), PRIMARY KEY (departmentId) ); --...
<reponame>Naimcse56/ecommerce -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 07, 2018 at 11:11 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_...
-- Albums CREATE TABLE Albums ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(70) NOT NULL, artist VARCHAR(70) NOT NULL, year_published INTEGER NOT NULL ); -- Songs CREATE TABLE Songs ( id INTEGER, album_id INTEGER NOT NULL, name VARCHAR(100) NOT NULL, PRIMARY KEY (id), FOREIGN KEY (album_id) ...
SELECT t_id, t_ili_tid, gemeindename, bfs_gemeindenummer, bezirksname, kantonsname, geometrie FROM agi_hoheitsgrenzen_pub.hoheitsgrenzen_gemeindegrenze;
-- `IS NULL` is to used to look up records that miss an attribute. USE sql_store; SELECT * FROM customers -- Customers who do not have a phone number WHERE phone IS NULL; -- Customers who have a phone number WHERE phone IS NOT NULL; -- Exercise -- -- Get the orders that are not shipped yet. SELECT * FROM orders W...
<filename>server/sql/users/find_by_email.sql SELECT * FROM tbl_user WHERE email = $1
-- MySQL dump 10.13 Distrib 8.0.15, for macos10.14 (x86_64) -- -- Host: localhost Database: kate_skorija -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
<reponame>tjadezweni/SQL-Query-Exercise<filename>Solutions/Q10.sql SELECT EmployeeID, OrderID, CustomerID, RequiredDate, ShippedDate FROM Orders WHERE ShippedDate > RequiredDate;
<gh_stars>100-1000 Rem Rem $Header: sh_hiera.sql 02-feb-2007.11:50:58 gssmith Exp $ Rem Rem sh_hiera.sql Rem Rem Copyright (c) 2001, 2015, Oracle. All rights reserved. Rem Rem Permission is hereby granted, free of charge, to any person obtaining Rem a copy of this software and associated documentation files (the Rem...
SELECT ns.nspname AS "tableSchema", t.relname AS "tableName", a.attname AS "columnName", i.relname AS "indexName", ix.indisunique AS "isUnique", ix.indisprimary AS "isPrimaryKey", (SELECT MIN(CASE W...
create database ACCELERATE; use ACCELERATE; create table USERS( USERNAME VARCHAR(25) NOT NULL UNIQUE, PASSWD VARCHAR(150) NOT NULL, PUBLICKEY VARCHAR(150) NOT NULL, PRIMARY KEY (USERNAME) );
ALTER TABLE users ADD COLUMN evol_self pickle; CREATE TABLE evol_unnamed_children ( -- entry ID, autoincrement to avoid reusing deleted row IDs entry_id integer PRIMARY KEY AUTOINCREMENT, -- child child pickle );
-- file:numeric_big.sql ln:119 expect:true INSERT INTO num_exp_div VALUES (2,0,'NaN')
<filename>demo/shop/shop-translated/query-26.sql WITH RECURSIVE c0(src, trg) AS ((SELECT s0.src, s2.trg FROM (SELECT trg as src, src as trg, label FROM edge) as s0, (SELECT trg as src, src as trg, label FROM edge) as s1, edge s2 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s0.label = 56 AND s1.label = 54 AND s2.label...
Create or replace function random_string(length integer) returns text as $$ declare chars text[] := '{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}'; result text := ''; i integer := 0; begin if length < 0 then raise exception 'Given length cannot be less than 0'; end if; for i...
-- commit: <PASSWORD>
<reponame>TritonSE/WA-Family-Literacy-Application -- +goose Up ALTER TABLE books RENAME TO book_info; CREATE VIEW books AS ( SELECT book_info.*, array_remove(array_agg(book_contents.lang), NULL) AS languages FROM book_info LEFT JOIN book_contents ON book_info.id = book_contents.id GROUP BY book_info.i...
<reponame>cityofaustin/transportation-vz-data<gh_stars>1-10 -- -- Creates indexes for death count and suspected serious injuries -- create index atd_txdot_crashes_death_cnt_index on atd_txdot_crashes (death_cnt); create index atd_txdot_crashes_sus_serious_injry_cnt_index on atd_txdot_crashes (sus_serious_injry_cnt);...
<gh_stars>0 -- DROP TABLE DROP TABLE IF EXISTS sims.student_notes;
-- phpMyAdmin SQL Dump -- version 4.4.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 27, 2016 at 03:36 AM -- Server version: 5.6.25 -- PHP Version: 5.5.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 13, 2016 at 07:31 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 */;...
//// CHANGE name=change0 CREATE MEMORY TABLE TABLE36(ID INTEGER NOT NULL PRIMARY KEY,FIELD1 VARCHAR(30),USERTYPE4FIELD USERTYPE4,USERTYPE1FIELD USERTYPE1,USERTYPE5FIELD USERTYPE5) GO
ALTER TABLE fledge.streams DROP CONSTRAINT streams_fk1; DROP TABLE IF EXISTS fledge.destinations; DROP INDEX IF EXISTS fledge.fki_streams_fk1; -- Drops destination_id field from the table DROP TABLE IF EXISTS fledge.streams_old; ALTER TABLE fledge.streams RENAME TO streams_old; ALTER TABLE fledge.streams_old RENAME C...
#standardSQL # CSS in JS. Show number of sites that using each framework or not using any. CREATE TEMPORARY FUNCTION getCssInJS(payload STRING) RETURNS ARRAY<STRING> LANGUAGE js AS ''' try { var $ = JSON.parse(payload); var css = JSON.parse($._css); return css && Array.isArray(css.css_in_js) && css.css_i...
<reponame>SKalt/pg_sql_parser_tests<filename>fixtures/doctests/rowtypes/014/input.sql UPDATE mytab SET complex_col.r = (complex_col).r + 1 WHERE ...;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50519 Source Host : localhost:3306 Source Database : exam Target Server Type : MYSQL Target Server Version : 50519 File Encoding : 65001 Date: 2019-02-28 17:06:00 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
<reponame>shahriltech/e-pm<filename>db/e-pm.sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 20, 2016 at 03:03 PM -- Server version: 5.5.43-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone...
<filename>AprendiendoSQL/Ejercicios/ejercicio2.sql /* Modificar la comision de los vendedores y ponerla al 2% cuando ganan mas de 50000 */ UPDATE vendedores SET comision=0.5 WHERE sueldo >=50000;
<reponame>mikerodionov/ps_scripts DECLARE @YEAR AS INT SET @YEAR=2012 DECLARE @DBNAME VARCHAR(255) WHILE(@YEAR<=2017) BEGIN SET @DBNAME = 'K2Archive' + CAST(@YEAR AS VARCHAR(4)) PRINT @DBNAME SET @YEAR = @YEAR+1; END
CREATE TABLE `test.vacinations_per_country` ( `index` BIGINT, country TEXT, iso_code TEXT, date TEXT, total_vaccinations BIGINT, people_vaccinated BIGINT, people_fully_vaccinated BIGINT, daily_vaccinations_raw FLOAT(53), daily_vaccinations BIGINT, total_vaccinations_per_hundred FLOAT(53), people_va...
<reponame>dmitriso/Good-Burger -- THIS DROPS THE DATABASE IF IT ALREADY EXISTS DROP DATABASE burgers_db; -- THIS CREATES THE burgers_db CREATE DATABASE burgers_db; -- THIS DEISGNATES THE burgers_db TO BE AFFECTED USE burgers_db; -- THIS CREATES A NEW TABLE NAMED burgers CREATE TABLE burgers ( id INT NOT NULL AUTO_I...
USE [BuenDoctorData] GO INSERT INTO [USER_TYPE] VALUES (1,'Administrador',1); INSERT INTO [USER_TYPE] VALUES (2,'médicos',1); INSERT INTO [USER_TYPE] VALUES (3,'enfermeros',1); INSERT INTO [USER_TYPE] VALUES (4,'fisioterapeutas',1); GO INSERT INTO [APPOINTMENT_STATUS] VALUES (1,'Atendido',1); INSERT INTO [APPOINTMENT_...
<filename>Databases Basics - MS SQL Server/Basic CRUD/Basic CRUD/9.Find Names of All Employees by Salary in Range.sql SELECT FirstName,LastName,JobTitle FROM Employees WHERE Salary>=20000 AND Salary<=30000
CREATE TABLE if not exists users ( id INTEGER PRIMARY KEY AUTOINCREMENT, userid TEXT NOT NULL, password TEXT NOT NULL );
------------------------------------------------------- -- -- Title : [dbo].[AllCommunitiesView] -- Description : View for retrieving details about all the Communities, including the deleted ones. -- Input : N/A. -- Output : N/A. -- Author : v-sagna -- Date :...
<gh_stars>1-10 DEFINE RECORD CDD$TOP.AD.AD_CEILINGONE DESCRIPTION IS /*One Dimensional Optional Ceiling Table*/. AD_CEILINGONE_CDD STRUCTURE. /* Element = OPTTABLE Description = Depreciation optional table code */ OPTTABLE DATATYPE IS TEXT SIZE IS 6. /*...
vacuum; vacuum sales; vacuum sales to 100 percent; vacuum recluster sales; vacuum sort only sales to 75 percent; vacuum delete only sales to 75 percent; vacuum reindex listing; vacuum reindex listing to 75 percent; vacuum listing to 75 percent BOOST;
<reponame>johannesgerer/peekattack<gh_stars>1-10 DELIMITER $$ DROP PROCEDURE IF EXISTS `FindPartner` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `FindPartner` ( myFilterID BIGINT unsigned, myClientID BIGINT unsigned, OUT myPropertyID BIGINT unsigned, OUT Red5ClientID BIGINT unsigned, OUT Ser...
<reponame>EcZachly/robinhood-nlp CREATE TABLE robinhood.news_content( url TEXT, title TEXT, source TEXT, content TEXT, tickers TEXT[], published_at TIMESTAMP, updated_at TIMESTAMP, num_clicks INTEGER, cleaned_content TEXT, content_positive_sentiment DECIMAL, content_negative_...
BEGIN TRANSACTION; CREATE TABLE "orders" ( `index` INTEGER PRIMARY KEY AUTOINCREMENT, `address` TEXT, `wif` TEXT, `private_key` TEXT, `paid` INTEGER, `address_salt` INTEGER, `item_index` INTEGER, `item_amount` INTEGER, `btc_address` TEXT, `order_price` REAL, `date` INTEGER, `note` TEXT ); CREATE TABLE "item...
-- CreateTable CREATE TABLE "lobby" ( "lobby_id" SERIAL NOT NULL, "lobby_name" TEXT NOT NULL, "owner_id" INTEGER NOT NULL, "joined_users" INTEGER[], PRIMARY KEY ("lobby_id") ); -- AddForeignKey ALTER TABLE "lobby" ADD FOREIGN KEY ("owner_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CA...
<reponame>rebremer/azure-synapseserverless-python-rest-api /****** Object: StoredProcedure [dbo].[get_taxidata] Script Date: 8/27/2021 9:28:46 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[get_taxidata] AS SET NOCOUNT ON; -- Cast is needed to corretly inform pyodbc of outp...
<filename>resources/customconfigs/de-sl/data/mapbender/cronjobs/update_loadstats.sql INSERT INTO mapbender.loadstat(load_count, title, abstract, type, date, fkey_id) SELECT load_count, wmc_title, abstract ,'wmc', current_date, fkey_wmc_serial_id FROM mapbender.wmc_load_count, mapbender.mb_user_wmc WHERE wmc...
<filename>core/src/test/resources/sql/create.sql CREATE TABLE test_null ( col_boolean boolean, col_date date, col_decimal decimal(8, 2), col_double double, col_float float, col_int int, col_varchar varchar(255), col_time time, col_timestam...
UPDATE `creature_loot_template` SET `ChanceOrQuestChance`=0, `groupid`=1 WHERE `entry` IN (39625, 48337, 40177, 48702, 40319, 48784, 40484); DELETE FROM `creature_onkill_reward` WHERE `creature_id` IN (39625, 48337, 40177, 48702, 40319, 48784, 40484, 48822); INSERT INTO `creature_onkill_reward` (`creature_id`, `RewOnKi...
<filename>Cancer Modifier/manual_work/concept_manual_dimension.sql --The file emulates stage tables creation only and used to populate the Manual tables --Table Preparation --cm_concept_dimension the manual File https://docs.google.com/spreadsheets/d/10INTlC8XeoAFRzkSbOc3rS37ilJn979qlvpkEHOaOYU/edit#gid=0 DROP TABLE I...
SELECT FirstName, LastName, EmailAddress /* get vendor agent of company*/ FROM Purchasing.VendorContact AS VendorContact /* get name of agent */ JOIN Person.Contact AS Contact ON VendorContact.ContactID = Contact.ContactID /* get name of company */ JOIN Purchasing.Vendor AS Vendor ON VendorConta...
<gh_stars>100-1000 /************************************************************************** * Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
<reponame>KamLar/datly DROP TABLE IF EXISTS events; CREATE TABLE events ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, timestamp DATETIME, event_type_id INTEGER, quantity DECIMAL(7, 2) DEFAULT NULL, user_id INTEGER ); DROP TABLE IF EXISTS event_types; CREATE TABLE event...
<filename>src/main/resources/db.sql use trash; CREATE TABLE trash.trash_item ( id int NOT NULL AUTO_INCREMENT PRIMARY KEY, name varchar(255) DEFAULT '' NOT NULL, alias varchar(512) DEFAULT '' NOT NULL, description va...
create or alter proc dbo.uspCreateEvent @StartsAt datetimeoffset, @HomeId int, @AwayId int , @LeagueId int as begin set nocount on declare @EventId int select @EventId = EventId from dbo.Event where StartsAt = @StartsAt and HomeId = @HomeId and AwayId = @AwayId and LeagueId = @Lea...
drop database if exists spring_cloud_zuul; create database spring_cloud_zuul; use spring_cloud_zuul; create table zuul_routes( id int(12) auto_increment, /* 编号 */ path varchar(60) not null, /* 请求路径 */ service_id varchar(60) null, /* 服务编号 */ url varchar(200) null, /* 映射路径 */ `enable` bit not null default 1, /* 是否启用*/ r...
{{ config( sort='inferred_user_id', dist='inferred_user_id', unique_key='inferred_user_id' ) }} {% set timezone = var('snowplow:timezone', 'UTC') %} with add_to_cart as ( select * from {{ var('snowplow:add_to_cart') }} ), event_to_user_map as ( select * from {{ ref('snowplo...
<filename>initdb.sql create table comments ( id varchar(64) not null, video_id varchar(64), author_id int(10), content text, time datetime default current_timestamp, primary key (id) ); create table sessions ( session_id tinytext not null, TTL tinytext, login_name text ); alter ...
--문제3 - EMP테이블에서 관리자가 없는 직원 정보 조회 SELECT * FROM EMP WHERE MGR IS NULL;
<filename>src/oc_erchef/schema/verify/org_user_associations.sql -- Verify org_user_associations BEGIN; SELECT org_id, user_id, last_updated_by, created_at, updated_at FROM org_user_associations WHERE FALSE; ROLLBACK;
<reponame>amit-git/titus-executor START TRANSACTION ; create unique index branch_eni_actions_associate_branch_eni_trunk_eni_idx_uindex on branch_eni_actions_associate (branch_eni, trunk_eni, idx) where state = 'pending'; COMMIT;
-- Test: Subqueries 2 SELECT '' AS two, f1 AS "Constant Select" FROM SUBSELECT_TBL1 WHERE f1 IN (SELECT 1) ORDER BY 2;
<reponame>wanyos2005/smartLearn -- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 02, 2015 at 05:41 AM -- Server version: 5.6.26 -- PHP Version: 5.5.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
drop if exists test_class; create class test_class ( col1 integer, col2 date default '2001-05-05', col3 timestamp default '2001-05-05 08:00:00' on update current_timestamp ); insert into test_class(col1) values(999); insert into test_class(col1) values(888); select * from test_class order by 1,2; select attr_name...
<filename>openGaussBase/testcase/SQL/INNERFUNC/ASCII/Opengauss_Function_Innerfunc_Ascii_Case0023.sql -- @testpoint: 与distinct联用 drop table if exists test; create table test(name text); insert into test values('a'),('j'),('Hi'),('Hello'),('Hello'),('#'); select distinct chr(ascii(name)) from test order by chr(ascii(name...
-- @testpoint: rpad函数入参为算术表达式 select rpad(32142-3423,10,33) from sys_dummy;
<gh_stars>0 create schema wsdb default character set utf8; use wsdb create table tb_produto ( id int primary key auto_increment, nm_produto varchar(150) not null, qnt_produto int, preco_produto double not null, img_produto varchar(255) not null ) default character set utf8;
-- Updates the applicationn status upon approval or rejection by an authority CREATE OR REPLACE FUNCTION updateApplicationStatus( IN application_id INTEGER, IN position_of_updater VARCHAR, IN type_of_update VARCHAR ) RETURNS VOID AS $$ #variable_conflict use_column DECLARE new_status VARCHAR; retrosp INTEGER; B...
<filename>benchmark/Bimbo/tables-vectorwise/Bimbo_1.table-renamed.sql CREATE TABLE "Bimbo_1"( "col_00" smallint NOT NULL, "col_01" smallint NOT NULL, "col_02" integer NOT NULL, "col_03" smallint NOT NULL, "col_04" float8 NOT NULL, "col_05" integer NOT NULL, "col_06" smallint NOT NULL, "col_07" integer NOT NULL, "col_08...
<reponame>1005200/toko-online1 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Apr 2021 pada 18.39 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
ALTER TABLE `userGroup` ADD FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `userGroup` ADD FOREIGN KEY (`group`) REFERENCES `group` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `profile` ADD FOREIGN KEY (`gender`) REFERENCES `gender` (`code`) ON DELETE NO ACT...
-- a comment -- first step: make sure the dropdown is set to the right DB, not "master" -- ("USE adventureworks;" is usually how you switch Dbs, but Azure SQL DB doesn't support it) -- basic SELECT query - all columns and all rows from a given table. -- SalesLT is the schema name, Customer is the table name. SELECT *...
<reponame>taapp/tsoha-keskustelusovellus<filename>schema.sql CREATE TABLE users ( id SERIAL PRIMARY KEY, name TEXT UNIQUE, password TEXT, created_at TIMESTAMP, is_admin BOOLEAN, is_visible BOOLEAN ); CREATE TABLE areas ( id SERIAL PRIMARY KEY, user_id INTEGER REFERENCES users, name ...
DROP DATABASE IF EXISTS city_explorer; CREATE DATABASE city_explorer; \c city_explorer; DROP TABLE IF EXISTS locations; CREATE TABLE locations ( id SERIAL PRIMARY KEY, searchQuery VARCHAR(255), latitude FLOAT, longitude FLOAT );
<gh_stars>0 -- Structured Query Language (SQL) -- Preparation -- Start phpMyAdmin and create new database "Academy", using the provided script -- Connect to the database "Academy". Examine the major tables in the "Academy" database. -- ### Tasks -- 1. Write a SQL query to find all information about all d...
<reponame>Lotes/mysql-meta-modeling #import "table" CREATE FUNCTION is_class ( given_id INT ) RETURNS BOOL COMMENT 'checks if id is a valid class' LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA SQL SECURITY DEFINER BEGIN DECLARE class_id INT DEFAULT -1; SELECT id FROM named_elements ne WHERE ne.id=given_...
insert into municipality(id, name) values(UUID_TO_BIN('691bce27-f890-4f42-ac19-85f68429ab25'), 'Calakmul'); insert into municipality(id, name) values(UUID_TO_BIN('1cdd0ae3-35fa-4b45-98d7-d689caf4f718'), 'Calkiní'); insert into munici...
--------------------------------- <<label>> LOOP statements; END LOOP loop_label; --A LOOPdeclaração pode ter um rótulo opcional que aparece no início e no final da declaração. --É uma boa prática usar a LOOPinstrução quando: --Você deseja executar o corpo do loop pelo menos uma vez. --Você não tem certeza de ...
<reponame>pradeepkumarcm-egov/DIGIT-Dev Insert into egw_status (ID,MODULETYPE,DESCRIPTION,LASTMODIFIEDDATE,CODE,ORDER_ID) values (nextval('seq_egw_status'),'DISHONORCHEQUE','Created',current_date,'Created',null); Insert into egw_status (ID,MODULETYPE,DESCRIPTION,LASTMODIFIEDDATE,CODE,ORDER_ID) values (nextval('seq_egw...
<reponame>NaturalSolutions/ecoReleve-Data<filename>Back/database/View/V_RFIDasFile.sql /****** Object: View [dbo].[VArgosData_With_EquipIndiv] Script Date: 12/10/2015 17:53:50 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER view [dbo].[V_dataRFID_as_file] as SELECT e.ID as equipID,S.UnicIdenti...
<gh_stars>10-100 CREATE INDEX rooms_import_index ON rooms USING btree (import);
CREATE TABLE [dbo].[Publisher] ( [Id] INT IDENTITY(1,1) NOT NULL, [Name] NVARCHAR(100) NOT NULL, [DateCreated] DATETIME NOT NULL, [UserCreated] NVARCHAR(50) NOT NULL, [DateModified] DATETIME NULL, [UserModified] NVARCHAR(50) NULL, [IsDeleted] BIT NOT NULL ) GO ALTER TABLE [dbo].[Publisher] ADD CONSTRAINT [PK_...
-- file:json.sql ln:391 expect:true CREATE TYPE jsrec AS ( i int, ia _int4, ia1 int[], ia2 int[][], ia3 int[][][], ia1d js_int_array_1d, ia2d js_int_array_2d, t text, ta text[], c char(10), ca char(10)[], ts timestamp, js json, jsb jsonb, jsa json[], rec jpop, reca jpop[] )
<reponame>ytechie/azure-saas CREATE TABLE [dbo].[Tenant] ( [Id] UNIQUEIDENTIFIER NOT NULL DEFAULT NewId(), [Name] NVARCHAR(200) NOT NULL, [IsActive] BIT NOT NULL DEFAULT 1, [IsCancelled] BIT NOT NULL DEFAULT 0, [IsProvisioned] BIT NOT NULL DEFAULT 0, [ApiKey] UNIQUEIDENTIFIER NOT NULL, [CategoryId] INT N...
<filename>res/sql/formats/Complementos.sql CREATE TABLE IF NOT EXISTS `Carreras` ( `Carrera_Id` INT(15) NOT NULL AUTO_INCREMENT, `Carrera_Name` VARCHAR(350) NOT NULL, `Create_by` INT NOT NULL DEFAULT '1', `Create_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`Carrera_Id`), UNIQUE KEY(`Carrera_Name`)...
<reponame>kevin-at-datical/liquibase-test-harness INVALID TEST enableCheckConstraint is not supported for EDB --https://docs.liquibase.com/change-types/enable-check-constraint.html
<gh_stars>1-10 /*==============================================================*/ /* Table: demo_DEMO */ /*==============================================================*/ create sequence demo_DEMO_SEQ minvalue 1 increment by 1 nocache; / create table demo_DEMO (...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS to_do_item ( id IDENTITY PRIMARY KEY, ts BIGINT, title VARCHAR(255), priority VARCHAR(7), status VARCHAR(5) );
<gh_stars>1-10 CREATE TYPE sims.offering_types AS ENUM ('Public', 'Application Specific');
<filename>packages/amplication-server/prisma/migrations/20210630105716_block_version_commit/migration.sql /* Warnings: - You are about to drop the column `label` on the `BlockVersion` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "Block" ADD COLUMN "lockedByUserId" TEXT, ADD COL...
/*L Copyright SAIC-F Inc. Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cadsr-password-change/LICENSE.txt for details. L*/ --run as sbrext update sbr.user_accounts_view set enabled_ind = 'No' where ua_name like 'DEVELOPER%' /
CREATE TRIGGER maintain_project_fact_types BEFORE DELETE ON project_types FOR EACH ROW EXECUTE PROCEDURE v1.remove_project_type_from_project_fact_types();
<reponame>domdomegg/tabula<gh_stars>1-10 alter table feedback add column finalstage varchar(255); -- Marker chooses - populate final stage update feedback f set finalstage = 'moderation-marker' where id in ( select f.id from feedback f join assignment a on a.id = f.assignment_id join markingworkflow m on a...
<gh_stars>0 CREATE TABLE [Verification].[Earnings] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, LearnerUln bigint NOT NULL, LearnerReferenceNumber NVARCHAR(50) NOT NULL, Ukprn bigint NOT NULL, PriceEpisodeIdentifier NVARCHAR(50) NULL, EpisodeStartDate DATETIME2 NOT NULL, EpisodeEffectiveTnpStartDate DATETIME2 NOT ...