sql
stringlengths
6
1.05M
<reponame>jestevez/portfolio-trusts-funds -- DROP PROCEDURE GPSQLWEB.procUpdateAa2tpais CREATE PROCEDURE GPSQLWEB.procUpdateAa2tpais ( IN P_PAICLA BIGINT, IN P_PAINOM VARCHAR(40), IN P_PAICTR INTEGER, IN P_USERNAME VARCHAR(50), IN P_IPADDRESS VARCHAR(255), IN P...
DROP TABLE IF EXISTS `tb19`; CREATE TABLE `tb19` (`id` int(11) NOT NULL AUTO_INCREMENT, `a` DECIMAL(6) NOT NULL, `b` DECIMAL(10, 5) NOT NULL, `c` DECIMAL(12, 0) NOT NULL, `d` NUMERIC(6, 3) NOT NULL, `e` DECIMAL NOT NULL, `f` decimal(30,25), `g` decimal(38), `h` decimal(38, 30), `i` DECIMAL UNSIGNED NOT NULL, PRIMARY KE...
<gh_stars>100-1000 SELECT fn_db_create_index('idx_ad_groups_name_domain', 'ad_groups', 'name, domain', '', false);
<filename>bd.sql /* SQLyog Community v13.1.0 (64 bit) MySQL - 10.1.38-MariaDB : Database - nefli ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FORE...
<filename>longanh (1).sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th6 23, 2018 lúc 05:43 AM -- Phiên bản máy phục vụ: 10.1.26-MariaDB -- Phiên bản PHP: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
-- Schema File -- DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db; CREATE TABLE department ( id INT AUTO_INCREMENT NOT NULL, department_name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE department_role ( id INT AUTO_INCREMENT NOT NULL, title VARCHAR(50) NOT NULL, sa...
CREATE DATABASE tb_complaint; CREATE DATABASE tb_votes;
<reponame>tghaleb/kilo<filename>sql/final.sql SELECT * FROM layouts WHERE (jumps < 100) and (outward < 100) and (same_finger_rp < 100) and ((fingers0 + fingers9) < 2000) and ((fingers1 + fingers8) < 2600) and ((fingers3 + fingers6) < 4200) ORDER BY outward + jumps + same_finger_rp DESC, outward, same_finger_rp, effort ...
CREATE TABLE games ( gamesid INT NOT NULL AUTO_INCREMENT, home_team_name varchar(255), away_team_name varchar(255), home_team_final_score varchar(255), away_team_final_score varchar(255), PRIMARY KEY (gamesid) ); CREATE TABLE squads ( id INT NOT NULL AUTO_INCREMENT, players VARCHAR(255) NOT NULL, entry_timestamp TIMEST...
<gh_stars>0 --16.Create SoftUni Database CREATE DATABASE SoftUni CREATE TABLE [Towns]( [Id] INT PRIMARY KEY IDENTITY, [Name] NVARCHAR (20) NOT NULL,) CREATE TABLE [Addresses]( [Id] INT PRIMARY KEY IDENTITY, [AddressText] NVARCHAR (50) NOT NULL, [TownId] INT FOREIGN KEY REFERENCES [Towns](Id),) CREATE TABLE [Departm...
-- ================================================== -- FOREIGN KEY -- ================================================== ALTER TABLE admin.perfilacceso ADD CONSTRAINT fk_acceso_perfilacceso FOREIGN KEY ( idacceso ) REFERENCES admin.acceso ( idacceso ) ; ALTER TABLE admin.usuarioacceso ADD CONSTRAINT fk_acceso_usuar...
<gh_stars>0 --! Previous: sha1:f93354162c9928415ff10c18efbb3ef715a09f14 --! Hash: sha1:6065c54f7a8225db88c604072593b7426abfc823 --- Triggers --- -- Ensure `created_at` is never mutated and `updated_at` is monotonically increasing create or replace function app_private.tg__timestamps() returns trigger as $$ begin ...
<filename>pamphlet.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 09, 2019 at 06:55 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=@@C...
<reponame>zeyuec/light<filename>helloworld.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 3.5.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 03, 2013 at 11:29 PM -- Server version: 5.5.29-0ubuntu0.12.04.1 -- PHP Version: 5.3.10-1ubuntu3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET tim...
# Write your MySQL query statement below select Person.FirstName as FirstName, Person.LastName as LastName, Address.City as City, Address.State as State from Person left join Address on Person.PersonId=Address.PersonId;
alter table contests add column "description" varchar(255) default '' not null;
CREATE USER casting WITH PASSWORD '<PASSWORD>'; CREATE DATABASE casting; GRANT ALL PRIVILEGES ON DATABASE casting TO casting; \connect casting casting \connect postgres postgres CREATE DATABASE casting_test; GRANT ALL PRIVILEGES ON DATABASE casting_test TO casting;
select week_number, week_start, week_end, zip_code as zip, population, cases_weekly where week_end <= "2021-05-08" limit 100000
CREATE TABLE jobs ( id bigint unsigned not null auto_increment primary key, queue varchar(255) not null, data text default null, last_error text default null, locked_until timestamp not null default '2001-01-01 00:00:00', worker varchar(255) not null, create_time timestam...
<reponame>Kamal1224/dataworks-behavioural-framework select database, collection, imported_count, missing_exported_count, cast(cast(missing_exported_count as decimal(18,2)) / cast(imported_count as decimal(18,2)) * 100 as integer) as percentage_missing from [parquet_table_name_counts] where miss...
<gh_stars>1-10 WITH nums (n, fizzbuzz ) AS ( SELECT 1, CONVERT(nvarchar, 1) UNION ALL SELECT (n + 1) as n1, CASE WHEN (n + 1) % 15 = 0 THEN 'FizzBuzz' WHEN (n + 1) % 3 = 0 THEN 'Fizz' WHEN (n + 1) % 5 = 0 THEN 'Buzz' ELSE CONVERT(nvarchar, (n + 1)) END FROM nums WHERE n < 100 ) SELECT n, fizzbuzz...
create table item ( id serial primary key not null, name_item varchar(50), description varchar(100), time_create integer );
/* Navicat Premium Data Transfer Source Server : root2 Source Server Type : MySQL Source Server Version : 50732 Source Host : localhost:3306 Source Schema : mytest Target Server Type : MySQL Target Server Version : 50732 File Encoding : 65001 Date: 03/03...
<gh_stars>0 DROP TRIGGER IF EXISTS project_notify_event ON projects; DROP TRIGGER IF EXISTS deployment_notify_event ON deployments; DROP FUNCTION IF EXISTS notify_event;
<reponame>yonghong915/fib<gh_stars>0 DROP TABLE IF EXISTS sys_error_code; CREATE TABLE sys_error_code( pk_id BIGINT(20) NOT NULL COMMENT '主键编码', language varchar(10) NOT NULL DEFAULT 'zh_CN' COMMENT '语言', system_code varchar(10) NOT NULL DEFAULT 'uias' COMMENT '系统编码', error_code varchar(10) NOT NUL...
--add partition alter table tableName add partition(partitionColumn='partitionValue'); --drop null partition alter table tableName drop partition(partitionColumn=null); --count where partitionColumn is null select count(*) from tableName where partitionColumn is null; --default paritition value in hive:__HIVE_DEFAUL...
<filename>tests/read_committed.test/q01_1.sql select * from sqlite_stat1 where tbl="t1" explain query plan select a,b from t1 where b = 4
<gh_stars>1000+ alter table ACT_HI_PROCINST add SUPER_PROCESS_INSTANCE_ID_ varchar(64);
--test multiple rows select using a select query and set, multiset, sequence types create class t15( data_set set ( string ), data_multiset multiset( string ), data_sequence sequence( string )); insert into t15 values ({'a','a','b','e','d', 'null' , null ,''}, {'a','a','b','e','d',...
-- @testpoint:opengauss关键字decimal(非保留),作为角色名 --关键字不带引号-成功 drop role if exists decimal; create role decimal with password '<PASSWORD>' valid until '2020-12-31'; drop role decimal; --关键字带双引号-成功 drop role if exists "decimal"; create role "decimal" with password '<PASSWORD>' valid until '2020-12-31'; drop role "decimal...
<reponame>nfMalde/Ren.CMS.NET<filename>Ren.CMS.Net/Source/Ren.CMS.Net-Modules/Ren.CMS.Net.Installer/InstallModule/Areas/Installer/Data/nfcms_Settings2Permissions.Table.sql INSERT INTO ren_cms_Settings2Permissions (BackEndPM, FrontEndPM, sid) VALUES( 'write_comments', 'write_comments', '11') INSERT INTO ren_cms_Settings...
<reponame>yogiwirmanda/appndc<gh_stars>0 /* Navicat Premium Data Transfer Source Server : local Source Server Type : MariaDB Source Server Version : 100411 Source Host : localhost:3306 Source Schema : app_ndc Target Server Type : MariaDB Target Server Version : 100411 File Enc...
<reponame>lgcarrier/AFW SET DEFINE OFF; CREATE UNIQUE INDEX AFW_04_FIL_ARIAN_PK ON AFW_04_FIL_ARIAN (SEQNC) LOGGING /
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 07, 2019 at 12:09 PM -- Server version: 5.7.25-0ubuntu0.16.04.2 -- PHP Version: 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
<filename>api/db/migrations/20210425200056_add_ticket_ref_to_ticketnotes/migration.sql /* Warnings: - Added the required column `ticketId` to the `TicketNote` table without a default value. This is not possible if the table is not empty. - Made the column `field` on table `TicketNote` required. This step will fa...
<reponame>smola/language-dataset SELECT -- bib_record.record_id as bid, -- We need this id to connect bib_record to record_metadata '.b' || record_metadata.record_num || 'a' as bnum, -- I added in the '.b' at the beginning and 'a' (in place of the check digit) at the end so it looks more like a normal bib rec num...
<filename>integration-tests/tests/unit/model_union_multi_schema.sql {{ config( tags=['unit-test', 'bigquery', 'snowflake', 'postgres'] ) }} {% call dbt_unit_testing.test('model_union_multi_schema', 'sample test') %} {% call dbt_unit_testing.mock_source('dbt_unit_testing','multi_schema') %} select...
SELECT * FROM Employe INNER JOIN Contrat ON idContrat=idEmploye SELECT * FROM Employe WHERE idEmploye IN ( SELECT idContrat FROM Contrat WHERE CDI_CDD ='CDI' )
<filename>sql/organization_docs/cfar-org-docs.sql insert into organization_documents(url, title, publication_date, modified_date, author, publisher, affected_organizations, affected_people, document_scope, cause_area, notes) values ( 'https://eaforum.issarice.com/posts.php?id=NDszJWMsdLCB4MNoy#GNidm7iBmZJiA...
-- -- Creates a regular index for the case_id column in atd_txdot_crashes -- CREATE INDEX atd_txdot_crashes_crash_id_index ON atd_txdot_crashes (crash_id);
select {{ dbt_utils.surrogate_key('src.invocation_id') }} as invocation_hsh, src.invocation_id, min(src.load_dte) as load_dte from {{ref('invocation_log')}} src {% if is_incremental() %} left join {{ this }} dest on dest.invocation_id = src.invocation_id where dest.invocation_hsh is null...
<filename>LinguagemSQL/20180418.sql<gh_stars>0 SELECT * FROM ADMINISTRACAO.EMPREGADO AS E WHERE E.PNOME LIKE 'A%D' SELECT * FROM ADMINISTRACAO.EMPREGADO AS E WHERE E.PNOME LIKE '_[AO]%' col1 LIKE '%[0-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9]-[0-9][0-9]%' OR '%[0-9][0-9].[0-9][0-9][0-9].[0-9][0-9]-[0-9...
<reponame>zephyrinzephyr/mycat-demo<filename>ddl.sql CREATE SCHEMA IF NOT EXISTS mds0; CREATE SCHEMA IF NOT EXISTS mds1; CREATE TABLE IF NOT EXISTS mds0.`t_order` ( `order_id` bigint(20) NOT NULL, `user_id` int(11) NOT NULL, `status` varchar(50) DEFAULT NULL, PRIMARY KEY (`order_id`) ) ENGINE=InnoDB DEFAULT CH...
DROP DATABASE IF EXISTS 02015_db; CREATE DATABASE IF NOT EXISTS 02015_db; DROP TABLE IF EXISTS 02015_db.view_source_tb; CREATE TABLE IF NOT EXISTS 02015_db.view_source_tb (a UInt8, s String) ENGINE = MergeTree() ORDER BY a; DROP TABLE IF EXISTS 02015_db.materialized_view; CREATE MATERIALIZED VIEW IF NOT EXISTS 02015_...
/* Navicat MySQL Data Transfer Source Server : demo Source Server Version : 50639 Source Host : localhost:3306 Source Database : j2e8 Target Server Type : MYSQL Target Server Version : 50639 File Encoding : 65001 Date: 2018-11-28 23:32:54 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
<reponame>rrusk/SCOOP-data-quality<gh_stars>0 /* UBC-010 Numerator */ SELECT COUNT(d.demographic_no) AS Count FROM demographic AS d WHERE d.patient_status = 'AC' AND CONCAT_WS( '-',d.year_of_birth,d.month_of_birth,d.date_of_birth ) >= DATE_SUB( NOW(), INTERVAL 80 YEAR ) AND CONCAT_WS( '-',d.year_of_birth,d...
<gh_stars>0 void BeginForeignInsert(ModifyTableState *mtstate, ResultRelInfo *rinfo);
<gh_stars>0 create table FlaggedByUsers (GiftId bigint not null, Username varchar(32) not null, primary key (GiftId, Username)) create table Gifts (Id bigint not null, Content clob not null, CreationTimestamp bigint not null, FlagsCount integer not null, Text varchar(1024) not null, Thumbnail clob not null, Title varch...
### Chapter 12: Aggregate and Numeric Functions SELECT COUNT(*) FROM birds; UPDATE birds SET common_name = NULL WHERE common_name = ''; SELECT COUNT(common_name) FROM birds; SELECT COUNT(*) FROM birds WHERE common_name IS NULL; SELECT COUNT(*) FROM birds WHERE common_name IS NOT NULL; SELECT COUNT(*) FROM birds G...
<gh_stars>0 SELECT customerNumber FROM customers ORDER BY customerNumber;
<reponame>chingizbolatov/kps INSERT INTO `magnum-checklist`.migrations (id, migration, batch) VALUES (54, '2014_10_12_000000_create_users_table', 1); INSERT INTO `magnum-checklist`.migrations (id, migration, batch) VALUES (55, '2014_10_12_100000_create_password_resets_table', 1); INSERT INTO `magnum-checklist`.migratio...
<reponame>karenz50/sql_parser SELECT bc.firstname "First Name", bc.lastname, b.title, TO_CHAR(bo.orderdate, 'MM/DD/YYYY') "Order Date", p.publishername FROM finance_sche.book_customer bc, books b, book_order bo, publisher p WHERE firstname in ('tom', 'sarah', 'karen'); SELECT bc.firstname "First Name", bc.lastname, b.t...
CREATE PROCEDURE [dbo].[Update_EventMatchTeam] @Season int, @EventCode nvarchar(max), @MatchNumber int, @TeamNumber int, @Station nvarchar(max), @Dq BIT AS EXECUTE Insert_EventMatchTeam @Season, @EventCode, @MatchNumber, @TeamNumber, @Station, @Dq RETURN 0
-- Drop all tables in the personnel database if they exist DROP TABLE IF EXISTS departments; DROP TABLE IF EXISTS roles; DROP TABLE IF EXISTS employees; -- Create the departments table CREATE TABLE departments ( id INTEGER AUTO_INCREMENT PRIMARY KEY, department_name VARCHAR(30) NOT NULL ); -- Create the roles...
SELECT FirstName, LastName, MechanicId FROM Mechanics WHERE FirstName='Ryan' UPDATE Jobs SET MechanicId=3, Status='In Progress' WHERE Status='Pending'
<filename>5.2.3/Database/Indexes/AFW_25_PARMT_PUBLC_TRAVL_E_FK1.sql SET DEFINE OFF; CREATE INDEX AFW_25_PARMT_PUBLC_TRAVL_E_FK1 ON AFW_25_PARMT_PUBLC_TRAVL_EXECT (REF_TRAVL_PUBLC) LOGGING /
CREATE TEMP TABLE table_name (a, b) WITH (USER_CATALOG_TABLE) ON COMMIT DROP TABLESPACE tablespace_name AS SELECT * FROM foo; CREATE TEMP TABLE table_name2 WITH (OIDS) AS SELECT * FROM foo WITH NO DATA; CREATE UNLOGGED TABLE table_name3 WITH (OIDS=false) ON COMMIT DELETE ROWS AS SELECT * FROM foo;
<reponame>com6056/starrs<filename>API/IP/api_ip_get.sql /* api_ip_get.sql 1) get_address_from_range 2) get_subnet_addresses 3) get_range_addresses */ /* API - get_address_from_range 1) Dynamic addressing for ipv4 2) Get range bounds 3) Get address from range 4) Check if range was full */ CREATE OR REPLACE FUNCT...
<gh_stars>1-10 -- Deploy job-board:jobs_images_updated_at_defaults to pg -- requires: images -- requires: jobs BEGIN; ALTER TABLE job_board.jobs ALTER COLUMN updated_at SET DEFAULT (now() at time zone 'UTC'); ALTER TABLE job_board.jobs ALTER COLUMN updated_at SET NOT NULL; ALTER TABLE job_board.images ALTER COLUMN ...
DROP TABLE IF EXISTS census_tract_boundaries; CREATE TABLE census_tract_boundaries AS SELECT geoid, wkb_geometry AS geom_multpoly_4326 FROM census_gis.tl_2019_41_tract WHERE geoid LIKE '41005%' -- Clackamas OR geoid LIKE '41009%' -- Columbia OR geoid LIKE '41051%' -- Multnomah OR geoid LIKE '41067%' -- Wash...
CREATE TABLE IF NOT EXISTS "users" ( "user_id" BIGINT PRIMARY KEY, "user_name" TEXT UNIQUE, "full_name" TEXT NOT NULL ); CREATE INDEX "idx_users_user_name" ON "users" ("user_name"); CREATE TABLE IF NOT EXISTS "chats" ( "chat_id" BIGINT PRIMARY KEY, "chat_name" TEXT );
-- file:opr_sanity.sql ln:337 expect:true SELECT p1.oid, p1.proname FROM pg_proc as p1 WHERE proargmodes IS NOT NULL AND proargnames IS NOT NULL AND array_length(proargmodes,1) <> array_length(proargnames,1)
DROP TABLE IF EXISTS Departments; DROP TABLE IF EXISTS dept_emp; DROP TABLE IF EXISTS dept_manager; DROP TABLE IF EXISTS employees; DROP TABLE IF EXISTS salaries; DROP TABLE IF EXISTS titles; --create database --good practice to add not null, otherwise it woul've ok since there are no empty values -- a. department CR...
<filename>backend/de.metas.externalsystem/src/main/sql/postgresql/system/80-de.metas.externalsystem/5579040_sys_gh10594_add_caretaker_bprelation_role.sql -- 2021-02-12T12:51:49.882Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List_Trl SET IsTranslated='Y', Name='Betreuer',Updated=TO_...
ALTER TABLE db_version CHANGE COLUMN required_11994_01_mangos_creature_linking required_12000_01_mangos_spell_template bit; DROP TABLE IF EXISTS `spell_template`; CREATE TABLE `spell_template` ( `id` int(11) unsigned NOT NULL DEFAULT '0', `proc_flags` int(11) unsigned NOT NULL DEFAULT '0', `proc_chance` int(11) ...
-- DB/SPELL BONUS: Fix all errors with spell bonus on start up -- Spell: Deep Freeze corrrect Direct Bonus (http://www.wowhead.com/spell=71757) UPDATE `spell_bonus_data` SET `direct_bonus`='2.058000' WHERE `entry`='71757'; -- Spell: Vampiric Touch corrrect Direct Bonus (http://www.wowhead.com/spell=34914) UPDATE `spe...
<reponame>AlexJMercer/ToDentroADM O dumping de uma tabela complexa e um nome de esquema não é suportado no Windows.
<reponame>DavidBenko/gateway<gh_stars>1-10 CREATE TABLE IF NOT EXISTS "mqtt_sessions" ( "id" SERIAL PRIMARY KEY, "remote_endpoint_id" INTEGER NOT NULL, "type" TEXT NOT NULL, "client_id" TEXT NOT NULL, "data" JSONB NOT NULL, UNIQUE ("remote_endpoint_id", "type", "client_id"), FOREIGN KEY("remote_endpoint_i...
<gh_stars>1-10 -- Name: UpdateDicomEditCompareDisposition -- Schema: posda_files -- Columns: [] -- Args: ['number_edits_scheduled', 'number_compares_with_diffs', 'number_compares_without_diffs', 'subprocess_invocation_id'] -- Tags: ['adding_ctp', 'for_scripting'] -- Description: Update an entry in dicom_edit_compare_di...
BEGIN; INSERT INTO policies VALUES ('aee14d59-da0b-4974-ba6d-1a018b024874', '{"action": "*", "effect": "allow", "resource": "service_groups", "subjects": ["user:*"]}', CURRENT_TIMESTAMP, 1, TRUE) ON CONFLICT (id) DO UPDATE SET policy_data='{"action": "*", "ef...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 06, 2018 at 09:20 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.1.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
INSERT INTO `title` (`titles`) VALUES ('Mr'), ('Mrs'), ('Ms'), ('Miss'), ('Mx'), ('Master'), ('Sir'), ('Madam'), ('Dr'), ('Prof'), ('Hon'), ('Other')
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 30 Mar 2020 pada 09.14 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
select format(sam.date, 'dd/MM/yyyy', 'en-US') as Fecha, sam.receipt as Albarán, p.code as IMEI, pt.ean as EAN, pt.description as Descripción, COALESCE(p.price, pt.price, 0) as Precio from products p join [dbo].[stockAccountMovements] sam on p.stockAccountMovementId = sam.id join [dbo].[productTypes] pt...
<reponame>uhhernadez/procesamientoDeDatos2022A<filename>04_where/02_funciones.sql SELECT avg(salary) FROM salaries;
/************************************************************/ /***** DROP Stored Procedures *****/ /************************************************************/ /****** Object: StoredProcedure [dbo].[Hymns_SeasonServicesSelectBySeasonIdAndServiceId] Script Date: 5/31/2020 11:34:37 P...
<reponame>adamxtokyo/hackerrank<filename>Practice/SQL/Aggregation/Revising_Aggregations_Averages.sql /* * Practice > SQL > Aggregation > Revising Aggregations - Averages * https://www.hackerrank.com/challenges/revising-aggregations-the-average-function/problem */ SELECT AVG(Population) FROM City WHERE District = '...
<filename>sheets/mysql/close-binlog-file-and-start-new.sql FLUSH BINARY LOGS;
<reponame>uk-gov-mirror/SkillsFundingAgency.das-payments-V2 CREATE TABLE [Payments2].[CollectionPeriod] ( [Id] BIGINT NOT NULL IDENTITY(1,1) CONSTRAINT PK_CollectionPeriod PRIMARY KEY CLUSTERED, [AcademicYear] SMALLINT NOT NULL, [Period] TINYINT NOT NULL, [ReferenceDataValidationDate] DATETIME2 NULL, [CompletionD...
-- file:arrays.sql ln:230 expect:true insert into arrtest_i values(1,'cat1',21)
<reponame>hhudson/code_standard_tracking prompt --application/shared_components/user_interface/lovs/show_only begin -- Manifest -- SHOW ONLY -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.2' ,p_default_workspace_id=>9690978936188613 ,p_default_application_id...
SELECT department.department_name AS department, role.title, employee.employee_id, employee.first_name, employee.last_name FROM employee LEFT JOIN role ON (role.id = employee.role_id) LEFT JOIN department ON (department.id = role.department_id)
<filename>working/packages/vocabulary_pack/GetActualConceptInfo.sql CREATE OR REPLACE FUNCTION vocabulary_pack.GetActualConceptInfo (iConceptCode text, iVocabularyID text) RETURNS SETOF concept AS $BODY$ /* Get actual information about a concept in the following order: concept_stage, concept */ SELECT DISTINCT ON (s0...
// Top spot inner join between tables hikes , photots and users SELECT Hikes.hikeID, Photos.photos, Photos.dateAdded, Users.firstName, Users.lastName, Hikes.hikeName, Hikes.Description, Hikes.Rating FROM Hikes INNER JOIN Photos ON Hikes.hikeID=Photos.photoID INNER JOIN Users ON Hikes.hikeID=Users.userID // Top...
SELECT * FROM V$PARAMETER
<gh_stars>0 # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table user_input ( id bigint auto_increment not null, created_at timestamp, updated_at timestamp, lat ...
-- MySQL dump 10.13 Distrib 5.5.59, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: ciresources -- ------------------------------------------------------ -- Server version 5.5.59-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS...
<reponame>osscraft/SingleAuth<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2015 年 10 月 10 日 10:56 -- 服务器版本: 5.1.63-0+squeeze1-log -- PHP 版本: 5.3.3-7+squeeze19 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
<reponame>fedealconada/sourcegraph BEGIN; CREATE TABLE IF NOT EXISTS versions ( service text PRIMARY KEY, version text NOT NULL, updated_at timestamptz NOT NULL DEFAULT now() ); COMMIT;
DROP VIEW dots.ArrayElementFeature; DELETE FROM core.TableInfo WHERE name = 'ArrayElementFeature' AND database_id = (SELECT database_id FROM core.DatabaseInfo WHERE lower(name) = 'dots'); exit;
-- This migration adds the primary bonus amount to the transfers table... ALTER TABLE transfers ADD COLUMN primary_bonus_amount BIGINT(19) NOT NULL DEFAULT '0' AFTER primary_incentive_amount;
<reponame>petrolep/itilsimulator /** * ITIL Simulator * Database initialization script * * Execute this script to install the application. */ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
<filename>null/gamerch/rare.sql SELECT concat('|center:[[', replace(replace(tbl1.name, '[', '【'), ']', '】'), '>カード_', replace(replace(tbl1.name, '[', '【'), ']', '】'), ']]|', IFNULL(tbl2.name,...
<filename>INFO/Books Codes/Oracle9i PLSQL Programming/ch11/insteadOf.sql REM insteadOf.sql REM Chapter 11, Oracle9i PL/SQL Programming by <NAME> REM This script demonstrates the use of an Oracle8 instead-of REM trigger. CREATE OR REPLACE VIEW classes_rooms AS SELECT department, course, building, room_number FROM r...
@@dml.sql create table streets ( street_id number, street_name varchar2(255 char) );
<filename>pgSQL/CHECK on tables of short name.sql SELECT * FROM analysis.m_food_amap_name_short --WHERE -- "name" ~' .*|\(.*?\)|\(.*?)|\(.*?】|\(.*?\.\.\.|(.*?)|(.*?\)|(.*?】|《.*》|〈.*〉|(.*?\.\.\.|【.*?】|【.*?\)|【.*?)|【.*?\.\.\.|,|·.*|\&.*|&.*|®.*|●.*|•.*|\*.*|\@.*?.|\..*?\.\.\.|\/.*?\.\.\.|主题餐厅.*|品味干锅.*' --ORDER BY "name_...
/* 第16课 更新和删除数据 */ #添加行 INSERT INTO clients VALUES(6,"刘微","china","anyang","CN","133-456-8956"); USE sql_invoicing; SELECT * FROM clients; #更新数据 UPDATE SET UPDATE clients SET name="<NAME>",address="USA" WHERE client_id>=6; USE sql_invoicing...
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.23, for Linux (x86_64) -- -- Host: localhost Database: steslam -- ------------------------------------------------------ -- Server version 8.0.23-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS...
<reponame>censusreporter/census-postgres COMMENT ON COLUMN acs2013_1yr.geoheader.fileid IS 'Always equal to ACS Summary File identification'; COMMENT ON COLUMN acs2013_1yr.geoheader.stusab IS 'State Postal Abbreviation'; COMMENT ON COLUMN acs2013_1yr.geoheader.sumlevel IS 'Summary Level'; COMMENT ON COLUMN acs2013_1yr....
<filename>cmd/server/dist/sql/20181013123132_add-authuuid.down.sql ALTER TABLE 'users' DROP COLUMN authuuid;