sql
stringlengths
6
1.05M
<reponame>yusufsahril/laraveltest<filename>api_laravel.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 30 Mar 2022 pada 13.13 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zon...
INSERT INTO event_type(category, event_description) VALUES ('News', 'Latest information'), ('Events', 'Happenings in Steleks');
<reponame>DataHandwerk/DataHandwerk-toolkit-mssql<filename>db_DataHandwerk/reference/Tables/RepoObjectColumn_reference_T.sql CREATE TABLE [reference].[RepoObjectColumn_reference_T] ( [referenced_RepoObjectColumn_guid] UNIQUEIDENTIFIER NOT NULL, [referencing_RepoObjectColumn_guid] UNIQU...
CREATE MEMORY TABLE "TEST" ( "DATA" VARCHAR(1024) NOT NULL, );
SELECT * FROM "{{SCHEMA_NAME}}"."{{TABLE_NAME}}";
-- alter.test -- -- execsql { -- SELECT * FROM t5 WHERE b = 'main'; -- } SELECT * FROM t5 WHERE b = 'main';
<filename>src/test/resources/sql/delete/c8023868.sql -- file:triggers.sql ln:1070 expect:true delete from child where child.aid = new.aid and child.val1 = new.val1
-- MySQL dump 10.13 Distrib 5.6.12, for osx10.6 (x86_64) -- -- Host: localhost Database: neu -- ------------------------------------------------------ -- Server version 5.6.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
-- Create a TABLES table CREATE TABLE departments ( dept_no VARCHAR(30) NOT NULL, dept_name VARCHAR(30) NOT NULL ); CREATE TABLE dept_emp ( emp_no INT NOT NULL, dept_no VARCHAR(30) NOT NULL, from_date VARCHAR(30), to_date VARCHAR(30) ); CREATE TABLE dept_manager ( dept_no VARCHAR(30) NOT NULL, emp_no INT NO...
-- 2021-11-10T14:35:26.187Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,580209,0,'PO_InvoiceRule',TO_TIMESTAMP('2021-11-10 16:35:25','YYYY-MM-DD...
CREATE OR REPLACE FUNCTION public.concat_comments(cocid character varying) RETURNS character varying LANGUAGE plpgsql IMMUTABLE STRICT AS $function$ DECLARE commstring VARCHAR(300); BEGIN select array_to_string(array_agg(getdispl(cocc.item)), '; ') into commstring from collectionobjects_common coc inner join coll...
SELECT e1.`department_id`, ( SELECT DISTINCT(e2.`salary`) FROM `employees` AS e2 WHERE e2.`department_id` = e1.`department_id` ORDER BY e2.`salary` DESC LIMIT 2, 1) AS `third_highest_salary` FROM `employees` AS e1 GROUP BY e1.`department_id` HAVING `third_highest_salary` IS NOT NULL ORDER BY e1.`departm...
<gh_stars>0 CREATE TABLE categoria ( codigo BIGINT(20) AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, PRIMARY KEY(codigo) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE sparse_columns.[DocumentStoreWithColumnSet] (DocID int PRIMARY KEY, Title varchar(200) NOT NULL, ProductionSpecification varchar(20) SPARSE NULL, ProductionLocation smallint SPARSE NULL, MarketingSurveyGroup varchar(20) SPARSE NULL, MarketingProgramID int SPARSE NULL...
<filename>schema/oracle.sql /* Racquel - An ORM for Racket oracle - Test schema for Oracle */ /* Create Database */ create user test identified by test default tablespace users temporary tablespace temp quota 10M on users; grant connect to test; grant resource to test; grant create session to test; grant create tabl...
<reponame>ashclegit/bigdawg CREATE SCHEMA IF NOT EXISTS catalog; CREATE TABLE IF NOT EXISTS catalog.islands ( iid serial PRIMARY KEY, scope_name varchar(15), -- e.g., RELATIONAL, ARRAY ...
<reponame>jeysonlr/laminas-mezzio-geoNames select e.estadoid, e.nome, e.abreviacao, e.datacriacao, e.dataalteracao from public.estados e where e.nome ilike '%' || :nome || '%'
create table tree(id int,parentid int,sh short, text varchar(32)); insert into tree values(1,null,2,'A'); insert into tree values(2,null,3,'B'); insert into tree values(3,null,-1,'C'); insert into tree values(4,1,0,'AA'); insert into tree values(5,1,NULL,'AB'); insert into tree values(6,2,NULL,'BA'); insert into tree ...
<filename>sql/ioweight.sql --spool err.txt set feed off var max_read number var max_write number var max_io number var total_read number var total_write number var total_io number begin select max(sum(phyrds)), max(sum(phywrts)), max(sum(phywrts+phyrds)) into :max_read, :max_write, :max_io from v$fi...
<gh_stars>0 SELECT COUNT(*) FROM tag as t, site as s, question as q, tag_question as tq WHERE t.site_id = s.site_id AND q.site_id = s.site_id AND tq.site_id = s.site_id AND tq.question_id = q.id AND tq.tag_id = t.id AND (s.site_name in ('stackoverflow')) AND (t.name in ('applet','copy','dns','google-bigquery','group-by...
<reponame>d-haugs/RelAlg_Project_4_F2020 --@@drop C_id _um_of score SET SERVEROUTPUT ON DECLARE BEGIN ops.go(ops.group_ra('Play_data','C_id','Sum_score=sum(score)','C_id_um_of_score')); END; / select * from C_id_um_of_score;
<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 9.5.2 -- Dumped by pg_dump version 9.5.2 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_secu...
-- DROP TABLE IF EXISTS users cascade; -- DROP TABLE IF EXISTS users_roles; -- DROP TABLE IF EXISTS role; -- DROP SEQUENCE IF EXISTS users_id_seq; -- DROP SEQUENCE IF EXISTS roles_id_seq; -- DROP SEQUENCE IF EXISTS tariff_id_seq CASCADE ; drop table users cascade; CREATE TABLE IF NOT EXISTS users ( id SERIA...
CREATE PROCEDURE SP_CursosEnAulas_Actualizar @CodigoCurso INT, @NumeroDeAula INT, @DiaLectivo VARCHAR(10), @HoraInicio VARCHAR(10), @HoraFin VARCHAR(10), @CodigoCiclo INT, @ModificadoPor VARCHAR(60), @ExisteError BIT OUTPUT, @DetalleError VARCHAR(60) OUTPUT AS BEGIN TRY BEGIN TRANSACTION DE...
-- Insert a new restaurant INSERT IGNORE INTO restaurants (county_number, license_type_code, license_number, business_name, location_address, location_city, location_zipcode, critical_violations_before_2013, noncritical_violations_before_2013) VALUES (:county_number, :license_type_code, :license_n...
CREATE SCHEMA IF NOT EXISTS `admin`; DROP TABLE IF EXISTS `admin`.`user`;CREATE TABLE `admin`.`user` ( `id` bigint(20) NOT NULL, `name` text, `status` int(11) DEFAULT NULL, `createTime` datetime DEFAULT NULL, `cartInfo` text, `readTime` datetime DEFAULT NULL, `readTimes` int(11) DEFAULT '0', `memberId` varchar(...
<reponame>mr337/mymove<filename>migrations/20190108160637_update-conus-jppsos.up.sql -- The CHAT gbloc has been taken over by CNNQ UPDATE transportation_offices SET GBLOC = 'CNNQ' WHERE gbloc='CHAT'; --Add JOINT PERS PROP SHIPPING OFFICE - MA transportation offices and addresses INSERT INTO addresses (id, street_ad...
-- file:rowsecurity.sql ln:970 expect:true CREATE POLICY p1 ON y2 FOR ALL USING (a % 2 = 0)
-- file:alter_table.sql ln:2207 expect:true ALTER TABLE list_parted2 ATTACH PARTITION part_5 FOR VALUES IN (5)
<filename>SQL/Extension/functions/microsoft.rtrim.sql<gh_stars>1-10 IF EXISTS (SELECT * FROM sys.objects WHERE schema_id=SCHEMA_ID('microsoft') AND name = N'rtrim') DROP FUNCTION microsoft.rtrim; GO CREATE FUNCTION microsoft.rtrim(@expression NVARCHAR(MAX), @characters VARCHAR(32) = ' ') RETURNS NVARCHAR(MAX) WITH...
/* Warnings: - You are about to drop the column `savedShoppingCartId` on the `books` table. All the data in the column will be lost. - You are about to drop the `saved_shopping_carts` table. If the table is not empty, all the data it contains will be lost. */ -- CreateTable CREATE TABLE "shopping_carts" ( "...
create table meta ( metaKey varchar(30) not null, value varchar(100) null ); create unique index meta_metaKey_uindex on meta (metaKey); alter table meta add constraint meta_pk primary key (metaKey);
<filename>src/plugins/aggregator/resources/sql/mysql/WriteMediaRSSComment_query.sql REPLACE INTO mrss_comments (mrss_comment_id, mrss_id, type, comment) VALUES ( ? , ? , ? , ? )
-- Table: "BOTANICALFAMILY" -- DROP TABLE "BOTANICALFAMILY"; CREATE TABLE "BOTANICALFAMILY" ( bof_id integer NOT NULL, -- Eindeutiger Technischer Primaerschluessel bof_version integer NOT NULL, -- Versionsnummer für pessimistisches Sperren bof_name character(35) NOT NULL, CONSTRAINT pk_botanicalfamil...
<reponame>aravi5/drill-test-framework set `planner.slice_target`=1; select DISTINCT columns[1] from `psv/partsupp` order by columns[1] limit 5; reset `planner.slice_target`;
<reponame>coufalja/service-api insert into log(id, uuid, log_time, log_message, item_id, last_modified, log_level) values (1, 'ddd29955-0b88-4843-9390-1315a53afcc1', now(), 'log message', 2, now(), 40000), (2, '9ba98f41-2cde-4510-8503-d8eda901cc71', now(), 'message', 2, now(), 20000), (3, '94894af2-f6bd-4...
-- CREATE SCHEMA `summerb_tests` DEFAULT CHARACTER SET utf8 ; -- Migration from MySQL hints: https://en.wikibooks.org/wiki/Converting_MySQL_to_PostgreSQL CREATE TABLE users ( uuid CHAR(36) NOT NULL , display_name VARCHAR(45) NOT NULL , email VARCHAR(45) NOT NULL , time_zone VARCHAR(20) NOT NULL DEFAULT 'GMT+0...
-- Deploy paperplanes:activeperson to sqlite -- requires: person BEGIN; ALTER TABLE person ADD COLUMN active_member TINYINT(1) DEFAULT 1; COMMIT;
<filename>search-service/src/main/resources/db/migration/V0_9__extend_size_type_attribute_name_attribute_value_type_columns.sql ALTER TABLE temporal_entity_attribute ALTER COLUMN type TYPE VARCHAR(255); ALTER TABLE temporal_entity_attribute ALTER COLUMN attribute_name TYPE VARCHAR(255); ALTER TABLE temporal_entity_attr...
<gh_stars>1-10 create database "minions"; create schema if not exists "demo";
DROP INDEX transactions_protocol_id; DROP INDEX transactions_ref; ALTER TABLE transactions DROP COLUMN ref; ALTER TABLE transactions DROP COLUMN signer; ALTER TABLE transactions DROP COLUMN hash; ALTER TABLE transactions DROP COLUMN protocol_id; ALTER TABLE transactions DROP COLUMN info; ALTER TABLE transactions DROP ...
<filename>sql/2020/css/all_features.sql SELECT client, feature, num_urls AS freq, total_urls AS total, pct_urls AS pct_pages FROM `httparchive.blink_features.usage` WHERE yyyymmdd = '20200801' ORDER BY pct_pages DESC
<filename>includes/database/upgrade/(db_name)/v.2.6.3_place.sql<gh_stars>0 CREATE TABLE `place` ( `id` int(10) UNSIGNED NOT NULL auto_increment, `title` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `subtitle` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `activ...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 19 2018 г., 22:59 -- Версия сервера: 5.5.53 -- Версия PHP: 5.6.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
--SELECT MuestreoNacional.dbo.getEspecieAceptada('Tetramerium nervosum') --SELECT * FROM Catalogos.especie WHERE id = MuestreoNacional.dbo.getEspecieAceptada('Tetramerium nervosum') SELECT a.* , MuestreoNacional.dbo.getEspecieAceptada(LTRIM(RTRIM(a.genero + ' ' + ISNULL(a.epiteto, '') + ' ' + ISNULL(a.categoria_in...
<filename>CodeIgniter_demo.sql -- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1build0.15.04.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 04, 2016 at 06:54 PM -- Server version: 5.6.28-0ubuntu0.15.04.1 -- PHP Version: 5.6.4-4ubuntu6.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_z...
<filename>src/core/SQL/schema.sql -- Base de données : `libgps` -- -------------------------------------------------------- -- Structure de la table `points` -- [lecture seule] -- Les segments représentent l'ensemble des points existants. CREATE TABLE `point` ( `id` INTEGER PRIMARY KEY, `name` varchar(191) N...
-- ---------------------------- -- -- Table for users user_info {'sharding_date_begin': 'None', 'sharding_date_end': 'None', 'space': 'user_spaces'} -- ---------------------------- -- DROP TABLE IF EXISTS users.user_info; CREATE TABLE users.user_info ( createtime timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP, update...
DROP TABLE IF EXISTS petowner; CREATE TABLE petowner ( email VARCHAR(100) NOT NULL PRIMARY KEY, password VARCHAR(100) NOT NULL, firstName varchar(200) NOT NULL, lastName varchar(200) NOT NULL, address VARCHAR(200) NOT NULL );
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600038',@CutoffDate = N'2017-09-30',@EPS = N'0.4605',@EPSDeduct = N'0',@Revenue = N'78.01亿',@RevenueYoy = N'-5.52',@RevenueQoq = N'-22.66',@Profit = N'2.71亿',@ProfitYoy = N'-10.63',@ProfiltQoq = N'43.02',@NAVPerUnit = N'11.9103',@ROE = N'3.92',@CashPerUnit = N'-0.5531',@GrossProfitR...
SELECT gid AS t_id, "__gid", ogc_fid, o_art, ST_Multi(geometrie) AS geometrie FROM arp_richtplan_2017.kant_uferschutzzone WHERE archive = 0 ;
DROP MATERIALIZED VIEW IF EXISTS public.mv_flood_event_population CASCADE; CREATE MATERIALIZED VIEW public.mv_flood_event_population AS WITH intersections AS ( SELECT a_1.geometry, d.id AS flood_event_id, a_1.depth_class FROM (((public.hazard_area a_1 JOIN publ...
<gh_stars>1-10 delete from parent_topic where uuid in ('94a10f9f-a42e-44c0-8ebe-1227cb347f1d', '1abf7a0c-ea2d-478d-b6c8-d739fb60ef04', '71caee7b-4632-4ac6-9c15-b91d4c0d27e5', '038cecb8-00a2-4417-b18b-...
ALTER TABLE vetd.rounds ADD COLUMN doc_id bigint
-- randexpr1.test -- -- db eval {SELECT coalesce((select ~11*b from t1 where (not exists(select 1 from t1 where case d when t1.b then t1.b else d end not between b and t1.b and f in (select ~count(*) from t1 union select count(distinct coalesce((select max( -c+(abs(coalesce((select max(t1.a) from t1 where not exists(s...
-- Author: <NAME> DECLARE @OpsMgrSQLInstance nvarchar(50) = '<OpsMgr DB Instance>' DECLARE @DWSQLInstance nvarchar(50) = '<DW DB Instance>' DECLARE @tblName varchar(100) DECLARE @colName varchar(100) DECLARE @sqlstmt nvarchar(1000) CREATE TABLE #tmp ( TableName varchar(100), OldValue varchar(50), NewValue varchar(...
<filename>DataB/work/query.sql select * from ( select Post.id, count(Comment2.id) as Comments from Post, Comment2 where Comment2.rPost = Post.id group by Post.id order by Comments desc ) where rownum <=10 ; select Board.name as BoardName, AbsUser.name as AdminName from AbsUser, Board where Abs...
 CREATE TABLE `accounts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `first_name` varchar(255) DEFAULT NULL, `last_name` varchar(255) DEFAULT NULL, `password` varchar(255) NOT NULL, `rating` decimal(10,1) DEFAULT NULL, `status` tinyint(1) DEFAULT '0', `is_feature` tinyint(1) ...
INSERT INTO DGB_EXTENSIONS VALUES (?, ?, ?, ?, $CURRENT_TIMESTAMP$)
<reponame>pathfind/OR-Solutions-App CREATE TABLE "educate" ( "id" INTEGER PRIMARY KEY NOT NULL DEFAULT NULL, "educateThumbURL" TEXT DEFAULT NULL, "educatePDFURL" TEXT DEFAULT NULL, "sectionID" INTEGER); INSERT INTO "educate" VALUES (1, '/Users/sarb/Library/Application Support/iPhone Simulator/4.2/Applications/1EF62D5E-...
/** * * @author mg */ SELECT T0.ORDER_NO, 'Some text' txt, TABLE1.ID, TABLE1.F1, TABLE1.F3, T0.AMOUNT FROM TABLE1, TABLE2, #entities/sub-entity T0 WHERE TABLE2.FIELDA < TABLE1.F1 AND :P2 = TABLE1.F3 AND :P3 = T0.AMOUNT
<reponame>karendolan/unitime /* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version...
<gh_stars>10-100 /* Navicat Premium Data Transfer Source Server : localhost本机 Source Server Type : MySQL Source Server Version : 50718 Source Host : localhost:3306 Source Schema : workflow_bussiness Target Server Type : MySQL Target Server Version : 50718 File Encoding ...
<gh_stars>0 ----------------------------------------------------------------------------- -- code from https://wiki.postgresql.org/wiki/Aggregate_Median -- Postgresql 8.4+ ----------------------------------------------------------------------------- CREATE OR REPLACE FUNCTION _final_median(anyarray) RETURNS float8 AS ...
<filename>db/migrations/20181231070926_add_settlement_amount_in_cents_to_events/down.sql<gh_stars>0 ALTER TABLE events DROP COLUMN settlement_amount_in_cents;
<reponame>TCIA/common-security-module<gh_stars>1-10 /*L Copyright Ekagra Software Technologies Ltd. Copyright SAIC, SAIC-Frederick Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/common-security-module/LICENSE.txt for details. L*/ DROP TABLE LOG; DROP TABLE SIGNIN_USERS...
<gh_stars>0 -- MySQL dump 10.16 Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: satpro_sm -- ------------------------------------------------------ -- Server version 10.1.48-MariaDB-0+deb9u2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
INSERT batchItems(ID,Titel,Categorie,Postcode,Locatie,Land,Verkoper,Prijs,Valuta,Conditie,Thumbnail,Beschrijving) VALUES (221588047001,'Gymnastik Trikot/Trikots Zone Hüfthose Shorts im Alter Von 2-15 Jahren',85346,'','<NAME>','GB','qualityleotardsrus','31.21','EUR','Nieuw','img221588047001.jpg',' <div s...
<gh_stars>0 /*SELECT * FROM DETAIL_PAYMENTS WHERE number_of_transfer = '10000130'; SELECT * FROM PAYMENTS WHERE number_of_transfer = '10000130'; SELECT * FROM DETAIL_PAYMENTS WHERE ID_PAYMENT=513; SELECT * FROM PAYMENTS WHERE number_of_transfer = '10000001'; SELECT * FROM DETAIL_PAYMENTS WHERE ID_PAYMENT=513; SELECT...
# this is a simple mockup of what a database would # look like for the DAG. It gives us an easy way to # see what files need to be updated, allowing for optimazation of unessisary recompilation CREATE TABLE IF NOT EXISTS File( GUID int NOT NULL, Name varchar(255) NOT NULL, OutputFile...
<reponame>BobIllumine/S22-Databases create table `Group` ( groupId int not null, primary key (groupId) ); create table `Company` ( companyId int not null, coherentCompanyId int, primary key (companyId), foreign key (coherentCompanyId) references `Company`(companyId) ); create table `Plant` ( ...
<filename>SQL/7 kyu - SQL - Right and Left.sql -- https://www.codewars.com/kata/sql-right-and-left/train/sql -- My solution select left(project, commits) as project, right(address, contributors) as address from repositories -- ... SELECT SUBSTRING(project, 0, commits+1) AS project ,SUBSTRING(address, LEN...
<filename>db/schema.sql DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; -- Create department table CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NULL, PRIMARY KEY (id) ); -- Create role table (Foreign keys are used to permit cross-referencing r...
-------------------------------------------------------- -- DDL for Table USGSINF_INVALID -------------------------------------------------------- CREATE TABLE "GROUNDFISH"."USGSINF_INVALID" ( "ID" VARCHAR2(18 BYTE), "MISSION" VARCHAR2(10 BYTE), "CRUISE" VARCHAR2(6 BYTE), "STRATUM" VARCHAR2(5 BYTE), "TO...
INSERT INTO professor (nome_professor, sobrenome_professor, status_professor, cod_departamento) VALUES ('Fábio', '<NAME>', false, 2), ('Sophie', 'Allemand', true, 1), ('Monica', 'Barroso', true, 3);
merge `{{params.destination_dataset_project_id}}.{{params.destination_dataset_name}}.tokens` dest using {{params.dataset_name_temp}}.{{params.source_table}} source on false when not matched and date(block_timestamp) = '{{ds}}' then insert ( address, symbol, name, decimals, total_supply, block_ti...
<reponame>9590/-StockTrading -- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64) -- -- Host: localhost Database: stocktrading -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESUL...
/* SQLyog Ultimate v12.08 (64 bit) MySQL - 5.5.60-MariaDB : Database - Mdb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_C...
# This patch will eliminate the useless id column from release_nfos # This should improve query times for nfo operations across the board # and save a little hdd/ram space # Remove auto_increment, drop and recreate the primary key and drop # now duplicate index ALTER TABLE release_nfos MODIFY COLUMN id INT(11) UNSIG...
select /*+ ORDERED */ a.osuser, a.username, a.sid, a.serial#, p.spid, s.sql_text FROM v$process p, v$session a, v$sqltext s, v$sqlarea sa where s.address = a.prev_sql_addr AND p.addr = a.paddr AND s.address=sa.address AND a.sid = '&Sid' AND a.serial# = '&Serial' AND a.username is not null order by a.username, a.osuser,...
-- -- PostgreSQL database dump -- -- Dumped from database version 10.6 -- Dumped by pg_dump version 10.5 -- Started on 2018-06-18 13:13:03 EDT SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_ca...
<reponame>maximilliancharlemagne/employee-tracker<gh_stars>0 DROP DATABASE IF EXISTS company_db; CREATE DATABASE company_db; USE company_db; CREATE TABLE department (id int auto_increment, primary key (id), name varchar(30)); CREATE TABLE role (id int auto_increment, primary key (id), title varchar(30), salary deci...
<reponame>rachelroll/jhjkh<filename>fastadmin_jhjkh.sql /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : fastadmin_jhjkh Target Server Type : MYSQL Target Server Version : 50553 File Encoding :...
<filename>AMB/3-bussiness/utils/AMB_UTIL_VERSION.sql create or replace package AMB_UTIL_VERSION /** * Applications Manager project version utilities * @author:<EMAIL> * @since: 1.0 * @date: 2016/02/25 */ as /** * genarate project version guid as key */ function generate_guid return varchar2; /**...
<gh_stars>0 USE MUSE_Site0001 IF OBJECT_ID('ecg_locations', 'U') IS NOT NULL DROP TABLE ecg_locations SELECT DISTINCT a.PatientID AS PatientID, b.AcquisitionDateTime_DT AS ECG_datetime, b.Location AS LocationID, c.FullName AS LocationName INTO ecg_locations FROM tstPatientDemographics AS a INNER JOIN tstTest...
/* r899 add config for sync pages navigation, added news admin part */ INSERT INTO `cot_plugins` (`pl_hook` , `pl_code` , `pl_part` , `pl_title` , `pl_file` , `pl_order` , `pl_active` ) VALUES ('admin.config.edit.loop', 'news', 'adminconfig', 'News', 'news.admin', 10, 1); UPDATE `cot_config` SET `config_default` = '...
SELECT district_name, block_name, supervisor_name, awc_location.supervisor_id, awc_name, SUM(pse_eligible) AS pse_eligible, SUM(CASE WHEN pse_days_attended IS NOT NULL AND pse_days_attended=0 THEN 1 ELSE 0 END) AS pse...
<reponame>LasseWolter/clowdr<filename>hasura/migrations/1606837642052_create_table_public_ContentGroup/down.sql DROP TABLE "public"."ContentGroup";
<gh_stars>0 DROP TABLE IF EXISTS CASE_DETAIL; DROP TABLE IF EXISTS CASE_MAIN; CREATE TABLE CASE_MAIN ( CASE_ID VARCHAR(32) NOT NULL COMMENT '案件編號', CASE_STATUS VARCHAR(3) NOT NULL COMMENT '案件狀態', PRE_CASE_STATUS VARCHAR(3) COMMENT '前次案件狀態', UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新時間', ...
<reponame>NathanGuedes/Tcc_ControleOngs -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Tempo de geração: 25-Mar-2021 às 05:12 -- Versão do servidor: 8.0.21 -- versão do PHP: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00";...
<filename>database_schema.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Εξυπηρετητής: 127.0.0.1 -- Χρόνος δημιουργίας: 31 Μαρ 2022 στις 10:08:03 -- Έκδοση διακομιστή: 10.4.22-MariaDB -- Έκδοση PHP: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00...
#Medium Resolution NHDplus create table outgoing.medres_nhdplus_flow as SELECT comid, gnis_id, reachcode, fcode, lengthkm, the_geom_4269 as geom from nhdplus.nhdflowlines where fcode <> 56600;
<filename>db-refresher/db_refresh.sql REFRESH MATERIALIZED VIEW contributions_and_demo_stats; INSERT INTO audit_load_log(tablename,username,command) values('contributions_and_demo_stats','root','REFRESH'); REFRESH MATERIALIZED VIEW daily_stats_complete; INSERT INTO audit_load_log(tablename,username,command) values('da...
# https://leetcode-cn.com/problems/second-highest-salary/ # SQL schema Create table If Not Exists Employee (Id int, Salary int); Truncate table Employee; insert into Employee (Id, Salary) values ('1', '100'); insert into Employee (Id, Salary) values ('2', '200'); insert into Employee (Id, Salary) values ('3', '300'); ...
SELECT * FROM afsc.lls_ak_wide_3_to_7_depred
<filename>hasura/migrations_history/1611701586635_alter_table_public_artworks_add_column_extension_interval/up.sql ALTER TABLE "public"."artworks" ADD COLUMN "extension_interval" integer NULL;
/*--------------------------------- Task 2 of 3 Brief - Write a series of queries to answer questions about a database of movies Distribution code - movies.db Key concept: - SQL queries -----------------------------------*/ /* Return number of movies with rating of 10.0 */ SELECT COUNT(title) FROM (SELECT movies.id...
<filename>assets/common_view.sql CREATE OR REPLACE VIEW results AS SELECT t.id AS toto_id, t.start_date AS start_date, t.pot AS pot, t.pool_deviation AS pool_deviation, SUM(bi.money) AS bet, SUM(bi.income) AS income, AVG(bi.ev) AS ev, AVG(bi.probability) AS probability, MAX(bi.count_...
<reponame>gaoxizhe/bishe<gh_stars>0 /* SQLyog 企业版 - MySQL GUI v8.14 MySQL - 5.7.25-log : Database - petinfodb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!4001...
CREATE TABLE `topic` ( `tid` int(11) NOT NULL auto_increment, `title` varbinary(60) NOT NULL, `status` int(2) NOT NULL default '0', `top_level` int(2) NOT NULL default '0', `cid` int(11) default NULL, `pid` int(11) NOT NULL, `author_id` varchar(20) NOT NULL, PRIMARY KEY (`tid`), KEY `cid` (`cid`,`pid`) ) ENG...